SIM_SolverGetStates (ESI Function)
- Updated2023-03-14
- 1 minute(s) read
SIM_SolverGetStates (ESI Function)
Owning Class: Solver API
Requires: Control Design and Simulation Module
Prototype
double* SIM_SolverGetStates(SIM_Solver *solver);
Description
Returns a pointer to the continuous states of the model.
Inputs
| Name | Description |
|---|---|
| solver | Specifies a reference to the external ODE solver. Use this reference as an input to other ESI functions. Do not modify solver directly. |
Return Value
Returns a pointer to the continuous states of the model.
Examples
double* states = SIM_SolverGetStates(solver);