SIM_SolverSetStepsize (ESI Function)
- Updated2023-03-14
- 1 minute(s) read
SIM_SolverSetStepsize (ESI Function)
Owning Class: Solver API
Requires: Control Design and Simulation Module
Prototype
void SIM_SolverSetStepsize(SIM_Solver *solver, double stepsize);
Description
Specifies the ideal step size for the next step of the simulation. Use this function within the EvaluateError function.
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. |
| stepsize | Specifies the ideal step size for the next step of the simulation. |
Examples
double stepsize = 0.001;
SIM_SolverSetStepsize(solver, stepsize);