Meet Mira

Posted on: 02 Dec, 2026 MIRO

Your models, now in conversation.

Mira is the AI assistant built into GAMS MIRO. Introduced in MIRO 2.14, it lets you ask questions in plain language about model inputs and results, whether you’re exploring a single scenario in the sandbox or comparing several saved runs. It can also chart your results and propose input changes for you to review before the next run.

Imagine a team reviewing four scenarios from an energy system model. The dashboard has the numbers everyone expected to discuss. Then someone asks, “How does the electricity mix differ across scenarios in 2050?” And a moment later, “Can we see those differences before 2040?”

Follow the question as it changes

The team selects the four runs under Load Scenarios and clicks Ask Mira.

Show the 2050 electricity mix for all four scenarios as stacked bars. Use a segment for each technology, color by fuel, and leave out imports. Just the chart, please.

Mira uses the question to select the model output and determine how to group it. MIRO then reads and aggregates the values directly from the scenario database and passes them to the chart. The bars are computed from the model results. From the chat, the team can click Open in pivot view to adjust the filters or inspect the underlying table.

Stacked bar chart showing the 2050 electricity mix across four TIMES scenarios

Figure 1. Mira compares the electricity mix in 2050 across four scenarios. Open the chart in the pivot view to adjust filters or inspect the underlying data.

With all four scenarios still loaded, the team asks a follow-up in the chat: “Show the same breakdown for the model years before 2040.” They then narrow the discussion to two runs, labeled CO2L20 and CO2L30.

How do total system costs compare between CO2L20 and CO2L30? Show the annual CO₂ caps used in each run alongside the cost figures.

Mira queries the cost results and cap inputs for both scenarios and puts them side by side. The policy analyst asks in familiar terms, without looking up GAMS symbol names. The model developer helps the team interpret the differences and decide what to test next.

Tailor Mira to your model

Mira uses your app’s README for context by default. App developers can add Domain Context to explain what names like CO2L20 and CO2L30 mean. They can also save General Instructions that Mira uses when answering questions in the app. For example, they can specify that Mira should report system costs in millions of dollars, identify the reference scenario, and show both absolute and percentage changes.

Take the next what-if question into a model run

The team wants to see what would happen under a tighter emissions cap. They load CO2L30 into the sandbox and open Mira from the app header to look at that scenario on its own. First, they ask, “What annual CO₂ caps does this scenario use from 2040 onward?” Then they ask Mira to propose a change:

Reduce the annual CO₂ cap by 20% from 2040 onward.

Mira proposes an edit. The proposal identifies the input and how many values would change. The team checks the affected years and the proposed cap values in the before-and-after table. MIRO updates the sandbox inputs only after someone clicks Apply.

Mira proposal showing the current and proposed annual CO₂ caps for 2040, 2045, and 2050

Figure 2. The before-and-after preview shows which CO₂ caps would change. MIRO applies the edit to the sandbox when the user confirms it.

The team starts the model run in MIRO, saves it as a new scenario, and adds it to the comparison. At the next review, they can open the same set of scenarios and look at the effect of tightening the cap on both system costs and the electricity mix.

Build a view for the questions that keep coming up

If the electricity mix comes up in every review, the app developer can make it part of the app. In Configuration Mode, Mira can help write and refine the R code for a custom renderer. For example:

Create a stacked area chart of annual electricity generation by fuel. Display the renewable share in 2050 above the chart.

Mira can use the app’s symbol and column definitions and work with the renderer’s existing UI and server code. The developer can review the proposed R code, insert it with Apply Code, and check the rendered view in MIRO before keeping it.

Mira dialog with Apply Code beside the rendered chart in MIRO Configuration Mode

Figure 3. In Configuration Mode, developers can review Mira’s proposed R code and preview the custom renderer in MIRO.

Where Mira helps most

Mira is especially useful when a result raises an unexpected question. You can ask it in the terms you use in your work, inspect the values behind the answer, and test a different assumption in the same app. Because Mira works with the inputs and results of your own model, this workflow applies wherever you use GAMS and MIRO. A trade analyst might ask how imports shift under a tariff change. A supply chain planner might ask which facilities reach capacity when demand rises. In either case, what starts as a question can become a chart to discuss or a new scenario to test.

A few questions to try with Mira

  • “Draft a short briefing on the main differences across these scenarios. Include the figures behind each finding.”
  • “Which facilities reach capacity in the high-demand scenario, and when?”
  • “Before I run the model, check the demand inputs for missing values or unusual jumps.”

Try it with your own scenarios

Mira is available on MIRO Desktop and MIRO Server once an AI provider is configured and the feature is enabled for the app. Visit the Mira documentation for setup instructions and a demo video.

For your next scenario review, think of a question about your model results that you never got around to exploring. Start there with Mira.

You can also try Mira directly in your browser using demo apps in the GAMS MIRO Gallery .