固定成本仿真
定步长、固定成本能力评估;求解器选择;平衡速度和准确度
您为模型指定的定步长求解器类型、步长和迭代次数会影响实时仿真的速度和准确度。固定成本仿真过程可帮助您选择固定成本求解器设置,使您的模型能够在目标机上运行而不会超限。
函数
simscape.getLocalSolverFixedCostInfo | Determine iteration requirement when transitioning to fixed cost (自 R2021b 起) |
主题
- 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.