> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/rt-lab/model-and-simulation/power-systems-with-artemis/model-optimization/set-the-right-ssn-solver.md).

# Set the Right SSN Solver

ARTEMiS offers a variety of numerical solvers to balance accuracy, stability, and real-time performance. Choosing the right solver depends on the simulation type, model complexity, and stability requirements. **Artfive** is the default and most precise solver for real-time and offline simulations while **Backward Euler** maximizes stability at the cost of precision.

## Overview of solver types

<table><thead><tr><th width="170.81817626953125">Solver</th><th width="236.727294921875">Description</th><th>Best Use Case</th></tr></thead><tbody><tr><td><strong>Trapezoidal</strong></td><td>Classic trapezoidal method</td><td>General-purpose simulations. May exhibit oscillations in stiff or fast-switching systems.</td></tr><tr><td><strong>Art5</strong></td><td>High-precision fifth-order L-stable solver developed for ARTEMiS. Reduces numerical oscillations and computation overshoots.</td><td>Most real-time and offline simulations where accuracy is critical. Ideal for complex power systems.</td></tr><tr><td><strong>Backward Euler</strong></td><td>First-order implicit solver. Very stable but less precise than Artfive.</td><td>Models requiring maximum stability, especially under stiff conditions or high switching activity.</td></tr><tr><td><strong>Art5 with Backward-Euler Nodal Interface</strong></td><td>Fully implicit nodal voltage solution</td><td>Use when Art5 is accurate but not stable enough. Combines precision with improved stability.</td></tr><tr><td><strong>Art5 with Balanced Zero-Order-Hold Nodal Interface</strong></td><td>Nodal voltage treated as two half-steps of constant value</td><td>For difficult simulations where other solvers fail. Maximizes stability in extreme cases.</td></tr></tbody></table>

## Set the solver in the ARTEMIS Guide block

{% stepper %}
{% step %}

### Open the ARTEMIS Guide block mask

Verify that the **Enable State-Space Nodal method (SSN)** checkbox is selected. Note that the SSN solver is used even if the model does not contain **Nodal Interface Blocks** (NIB).
{% endstep %}

{% step %}

### Select the desired solver

Open the **SSN Options** tab and choose the required SSN solver from the dropdown list.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/rt-lab/model-and-simulation/power-systems-with-artemis/model-optimization/set-the-right-ssn-solver.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
