Fixed-Cost Simulation
The fixed-step solver type, step size, and number of iterations that you specify for a model affect the speed and accuracy of your real-time simulation. The fixed-cost simulation process helps you choose fixed-cost solver settings that allow your model to run on a target machine without generating overruns.
Functions
simscape.getLocalSolverFixedCostInfo | Determine iteration requirement when transitioning to fixed cost (Since R2021b) |
Topics
- Fixed-Cost Simulation Process
Configure the solvers in your Simscape™ model for real-time simulation.
- Fixed-Cost Simulation for Real-Time Viability
Avoid real-time simulation overruns by choosing a step size and number of iterations that limit the computational cost of simulating your Simscape model.
- Estimate Computation Costs
Determine if your Simscape model is likely to cause an overrun when you simulate it on your real-time target machine by estimating computational costs.