<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Kamran Mushtaq | The Learning Garden</title>
    <link>https://kamranmushtaq.com/learning</link>
    <description>An educational repository of core concepts, terminology, and software architecture models by Kamran Mushtaq.</description>
    <language>en-us</language>
    <lastBuildDate>Wed, 26 Aug 2026 16:24:00 GMT</lastBuildDate>
    <atom:link href="https://kamranmushtaq.com/learning/feed" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Compressed Sparse Row (CSR)</title>
      <link>https://kamranmushtaq.com/learning/compressed-sparse-row-csr</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/compressed-sparse-row-csr</guid>
      <pubDate>Wed, 12 Aug 2026 22:42:20 GMT</pubDate>
      <description>### Definition
CSR (Compressed Sparse Row) is a storage format used to efficiently store a sparse matrix.

Its role in our system is:

Graph
 ↓
Adjacency Matrix
 ↓
Mostly 0s
 ↓
Sparse Matrix
 ↓
CSR
 ↓
Efficient storage/querying

It avoids physically storing all those zeros.

### The Problem That Led...</description>
    </item>
    <item>
      <title>Graph</title>
      <link>https://kamranmushtaq.com/learning/graph</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/graph</guid>
      <pubDate>Wed, 12 Aug 2026 22:23:28 GMT</pubDate>
      <description>### Definition
A graph is a data structure used to represent entities and the relationships/connections between them.

It consists mainly of:

* Nodes (vertices) → the entities
* Edges → the connections/relationships between those entities

Example:

A ─── B
│          │
│          │
C ─── D

Here:
...</description>
    </item>
    <item>
      <title>Matrix</title>
      <link>https://kamranmushtaq.com/learning/matrix</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/matrix</guid>
      <pubDate>Wed, 12 Aug 2026 22:10:58 GMT</pubDate>
      <description>### Definition
A matrix is a two-dimensional arrangement of values organized into rows and columns.

Its role is to organize data where both dimensions have meaning.

Example:

Math  English
Ali        80      70
Sara       90      85

Here:
* Row → student
* Column → subject
* Value → marks

So mat...</description>
    </item>
    <item>
      <title>Vectorized Batch Dispatch</title>
      <link>https://kamranmushtaq.com/learning/vectorized-batch-dispatch</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/vectorized-batch-dispatch</guid>
      <pubDate>Mon, 10 Aug 2026 21:40:58 GMT</pubDate>
      <description>### Definition
Vectorized Batch Dispatch means grouping many similar events together and processing them in parallel instead of handling them one at a time.

Its role is to make the system faster when many events arrive together.

### The Problem That Led to It
Imagine our simulation receives:

10,0...</description>
    </item>
    <item>
      <title>Prompt Caching</title>
      <link>https://kamranmushtaq.com/learning/prompt-caching</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/prompt-caching</guid>
      <pubDate>Mon, 10 Aug 2026 21:35:13 GMT</pubDate>
      <description>### Definition
Prompt caching is a technique for reusing work/results from previous requests instead of processing the same request again.

In our optimization system:

New request → check cache → if matching result exists → reuse it

The goal is to save computation and reduce latency.

### The Prob...</description>
    </item>
    <item>
      <title>Knowledge Distillation</title>
      <link>https://kamranmushtaq.com/learning/knowledge-distillation</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/knowledge-distillation</guid>
      <pubDate>Mon, 10 Aug 2026 21:26:57 GMT</pubDate>
      <description>### Definition
Knowledge Distillation is the process of teaching a smaller student model to imitate a larger teacher model.

In our MoM system:

Full LLM (Teacher) → Knowledge Distillation → Surrogate Model (Student)

The goal is to make the surrogate good enough at routine decisions so MoM can use ...</description>
    </item>
    <item>
      <title>Surrogate Model</title>
      <link>https://kamranmushtaq.com/learning/surrogate-model</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/surrogate-model</guid>
      <pubDate>Mon, 10 Aug 2026 21:24:36 GMT</pubDate>
      <description>### Definition
A Surrogate Model is a smaller, cheaper model trained to imitate a larger LLM for routine decisions.

Its role in MoM is:

Event → MoM → “This is routine” → Surrogate Model → Answer

So instead of using the expensive full LLM every time, MoM can send suitable tasks to the surrogate.

...</description>
    </item>
    <item>
      <title>Mixture-of-Models (MoM) Engine</title>
      <link>https://kamranmushtaq.com/learning/mixture-of-models-mom-engine</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/mixture-of-models-mom-engine</guid>
      <pubDate>Mon, 10 Aug 2026 21:23:30 GMT</pubDate>
      <description>### Definition
A Mixture-of-Models (MoM) Engine is an inference system that chooses the appropriate level of computation for each task.

Instead of sending every request to a large LLM, it can route the task to:

Full LLM → complex task

Surrogate model → routine task

Lookup table → already-known r...</description>
    </item>
    <item>
      <title>Simulation Operations (SimOps)</title>
      <link>https://kamranmushtaq.com/learning/simulation-operations-simops</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/simulation-operations-simops</guid>
      <pubDate>Sun, 09 Aug 2026 21:16:29 GMT</pubDate>
      <description>### Definition
Simulation Operations (SimOps) are modular, LLM-powered functions that execute the key operations required to run the simulation.

They provide the simulation with separate functions for:

Initialization → Perception → Policy → Evolution → Update → Readout

### The Problem That Led to...</description>
    </item>
    <item>
      <title>State Transition</title>
      <link>https://kamranmushtaq.com/learning/state-transition</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/state-transition</guid>
      <pubDate>Sun, 09 Aug 2026 21:00:52 GMT</pubDate>
      <description>### Definition
State Transition is the formal process F that takes an event and determines how that event changes the current state of the simulation.

Its role is:

Event → F → Updated State

The state may include the agent&apos;s internal/external status and/or the environment state.

### The Problem T...</description>
    </item>
    <item>
      <title>Event Queue</title>
      <link>https://kamranmushtaq.com/learning/event-queue</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/event-queue</guid>
      <pubDate>Sun, 09 Aug 2026 20:56:09 GMT</pubDate>
      <description>### Definition
A place where upcoming events are stored and executed in the correct order.

### The Problem That Led to It
Imagine 100 agents generate actions at different times. Without ordering, the simulator wouldn’t know which action happens first.

### What Problem It Solves
It orders events by...</description>
    </item>
    <item>
      <title>External Status</title>
      <link>https://kamranmushtaq.com/learning/external-status</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/external-status</guid>
      <pubDate>Sun, 09 Aug 2026 20:36:34 GMT</pubDate>
      <description>### Definition
Observable properties of an agent, such as social network connections or spatial location.

Role: It represents the agent&apos;s observable situation and relationships within the environment.

### The Problem That Led to It
An agent does not exist in isolation.

Where it is located and who...</description>
    </item>
    <item>
      <title>Internal Status</title>
      <link>https://kamranmushtaq.com/learning/internal-status</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/internal-status</guid>
      <pubDate>Sun, 09 Aug 2026 20:34:03 GMT</pubDate>
      <description>### Definition
The dynamic state of an agent that evolves over time, encompassing memory, beliefs, goals, and emotional state.

Role: It represents what is changing internally as the agent experiences the simulation.

### The Problem That Led to It
An agent&apos;s initial characteristics are not enough.
...</description>
    </item>
    <item>
      <title>Agent Profile</title>
      <link>https://kamranmushtaq.com/learning/agent-profile</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/agent-profile</guid>
      <pubDate>Sun, 09 Aug 2026 20:32:34 GMT</pubDate>
      <description>### Definition
A set of static persona attributes—such as demographics, age, income, education, and personality traits—initialized from empirical datasets to ground agent decisions.

Role: It establishes the agent&apos;s initial characteristics.

### The Problem That Led to It
Real people do not all star...</description>
    </item>
    <item>
      <title>Agent-Based Modeling (ABM)</title>
      <link>https://kamranmushtaq.com/learning/agent-based-modeling-abm</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/agent-based-modeling-abm</guid>
      <pubDate>Sun, 09 Aug 2026 20:31:02 GMT</pubDate>
      <description>### Definition
A computational approach for simulating the actions and interactions of autonomous agents to evaluate their effects on the system as a whole.

Role: It provides the overall simulation in which agents interact.

### The Problem That Led to It
A real system may contain thousands or mill...</description>
    </item>
    <item>
      <title>Agent</title>
      <link>https://kamranmushtaq.com/learning/agent</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/agent</guid>
      <pubDate>Sun, 09 Aug 2026 20:29:37 GMT</pubDate>
      <description>### Definition
An autonomous computational entity designed to emulate human-like behavior, perception, and decision-making within a simulated environment.

Role: It is the individual actor inside a simulation.

### The Problem That Led to It
Real-world systems contain many individuals who perceive s...</description>
    </item>
    <item>
      <title>SDK (Software Development Kit)</title>
      <link>https://kamranmushtaq.com/learning/sdk-software-development-kit</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/sdk-software-development-kit</guid>
      <pubDate>Fri, 31 Jul 2026 21:25:40 GMT</pubDate>
      <description>### Definition
An SDK (Software Development Kit) is a collection of tools, libraries, documentation, and sample code that helps developers build applications for a specific platform or service. It fits between your code and the platform/API you want to use.

### The Problem That Led to It
Before SDK...</description>
    </item>
    <item>
      <title>AMI (Advanced Metering Infrastructure)</title>
      <link>https://kamranmushtaq.com/learning/ami-advanced-metering-infrastructure</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/ami-advanced-metering-infrastructure</guid>
      <pubDate>Thu, 30 Jul 2026 21:54:31 GMT</pubDate>
      <description>### Definition
AMI (Advanced Metering Infrastructure) is a network of smart meters, communication systems, and utility software that enables two-way communication between electricity consumers and the utility company. Unlike traditional electricity meters that only record energy usage and require ma...</description>
    </item>
    <item>
      <title>PMU (Phasor Measurement Unit)</title>
      <link>https://kamranmushtaq.com/learning/pmu-phasor-measurement-unit</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/pmu-phasor-measurement-unit</guid>
      <pubDate>Thu, 30 Jul 2026 21:49:51 GMT</pubDate>
      <description>### Definition
A PMU (Phasor Measurement Unit) is a high-precision sensor installed in the power grid that measures voltage and current while using GPS time synchronization so that measurements taken at different locations can be compared at the exact same instant. This allows operators to monitor t...</description>
    </item>
    <item>
      <title>HMI (Human-Machine Interface)</title>
      <link>https://kamranmushtaq.com/learning/hmi-human-machine-interface</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/hmi-human-machine-interface</guid>
      <pubDate>Mon, 27 Jul 2026 19:34:54 GMT</pubDate>
      <description>### Definition
HMI (Human-Machine Interface) is the graphical interface through which human operators interact with SCADA and other industrial control systems in a Cyber-Physical Energy System (CPES). It displays real-time information collected from the power grid—such as voltage, current, breaker s...</description>
    </item>
    <item>
      <title>IED (Intelligent Electronic Device)</title>
      <link>https://kamranmushtaq.com/learning/ied-intelligent-electronic-device</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/ied-intelligent-electronic-device</guid>
      <pubDate>Mon, 27 Jul 2026 19:25:03 GMT</pubDate>
      <description>### Definition
IED (Intelligent Electronic Device) is a specialised smart electronic device designed specifically for electrical power systems. It is installed alongside electrical equipment such as transformers, generators, transmission lines, circuit breakers, and busbars to measure electrical par...</description>
    </item>
    <item>
      <title>PLC (Programmable Logic Controller)</title>
      <link>https://kamranmushtaq.com/learning/plc-programmable-logic-controller</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/plc-programmable-logic-controller</guid>
      <pubDate>Mon, 27 Jul 2026 19:08:42 GMT</pubDate>
      <description>### Definition
A PLC (Programmable Logic Controller) is an industrial computer installed close to electrical equipment in a Cyber-Physical Energy System (CPES). Its job is to continuously monitor local inputs, make automatic decisions based on a programmed logic, and immediately control connected eq...</description>
    </item>
    <item>
      <title>RTU (Remote Terminal Unit)</title>
      <link>https://kamranmushtaq.com/learning/rtu-remote-terminal-unit</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/rtu-remote-terminal-unit</guid>
      <pubDate>Mon, 27 Jul 2026 19:01:15 GMT</pubDate>
      <description>### Definition
An RTU (Remote Terminal Unit) is a field device installed at remote locations in a Cyber-Physical Energy System (CPES), such as substations, power plants, transmission stations, DER sites, and microgrids. Its job is to collect real-time data from electrical equipment (sensors, meters,...</description>
    </item>
    <item>
      <title>SCADA</title>
      <link>https://kamranmushtaq.com/learning/scada</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/scada</guid>
      <pubDate>Mon, 27 Jul 2026 18:54:37 GMT</pubDate>
      <description>### Definition
SCADA (Supervisory Control and Data Acquisition) is the central control room of a Cyber-Physical Energy System (CPES). Its role is to monitor and control the entire power grid from one location. Instead of operators visiting every power plant, substation, transformer, or DER, SCADA co...</description>
    </item>
    <item>
      <title>Resistance</title>
      <link>https://kamranmushtaq.com/learning/resistance</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/resistance</guid>
      <pubDate>Mon, 27 Jul 2026 11:30:29 GMT</pubDate>
      <description>### Definition
Resistance is a material&apos;s natural opposition to the movement of electrons, acting as electrical friction.

### The Problem That Led to It
Early systems lost power over long distances, and wires mysteriously overheated. Engineers needed to understand what was opposing the flow to prev...</description>
    </item>
    <item>
      <title>Power</title>
      <link>https://kamranmushtaq.com/learning/power</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/power</guid>
      <pubDate>Mon, 27 Jul 2026 11:28:49 GMT</pubDate>
      <description>### Definition
Power is the total electrical energy delivered every second. It is the combined result of both voltage and current

### The Problem That Led to It
Measuring only voltage (energy per charge) or current (charges per second) couldn&apos;t reveal the actual total work being done. Engineers nee...</description>
    </item>
    <item>
      <title>Voltage</title>
      <link>https://kamranmushtaq.com/learning/voltage</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/voltage</guid>
      <pubDate>Mon, 27 Jul 2026 11:27:15 GMT</pubDate>
      <description>### Definition
Voltage is the electrical potential energy available for each Coulomb of charge. It dictates how much energy each charge carries through a circuit

### The Problem That Led to It
Just moving charges wasn&apos;t enough; systems needed a way to pack specific amounts of energy into those carr...</description>
    </item>
    <item>
      <title>Current</title>
      <link>https://kamranmushtaq.com/learning/current</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/current</guid>
      <pubDate>Mon, 27 Jul 2026 11:25:30 GMT</pubDate>
      <description>### Definition
Current is the rate at which electric charge flows through a circuit. It measures the movement of charge per second, acting as the system&apos;s flow rate

### The Problem That Led to It
Treating &quot;electricity&quot; as one vague concept made it impossible to properly size cables or measure syste...</description>
    </item>
    <item>
      <title>Electic Field</title>
      <link>https://kamranmushtaq.com/learning/electic-field</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/electic-field</guid>
      <pubDate>Mon, 27 Jul 2026 11:23:42 GMT</pubDate>
      <description>### Definition
The electric field is an invisible force established throughout a circuit by voltage, acting as the immediate push that makes electrons drift.

### The Problem That Led to It
A battery cannot physically grab and move every distant electron in a long wire. Systems needed a way to trans...</description>
    </item>
    <item>
      <title>Charge Separation &amp; How a Battery Creates Voltage</title>
      <link>https://kamranmushtaq.com/learning/charge-separation-how-a-battery-creates-voltage</link>
      <guid isPermaLink="true">https://kamranmushtaq.com/learning/charge-separation-how-a-battery-creates-voltage</guid>
      <pubDate>Mon, 27 Jul 2026 11:21:37 GMT</pubDate>
      <description>### Definition
A battery chemically separates charges to create voltage (potential difference). It is step one in preparing energy for circuits.

### The Problem That Led to It
To transmit power, systems needed electrical pressure. Naturally, charges sit neutrally without pressure, just like water r...</description>
    </item>
  </channel>
</rss>