고정 비용 시뮬레이션
모델에 지정하는 고정 스텝 솔버 유형, 스텝 크기, 반복 횟수는 실시간 시뮬레이션의 속도와 정확도에 영향을 미칩니다. 실시간 시뮬레이션 워크플로는 오버런을 발생시키지 않고 타깃 머신에서 모델을 실행할 수 있도록 하는 고정 비용 솔버 설정을 선택하는 데 도움이 됩니다.
함수
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.
- Solvers for Real-Time Simulation
The fixed-step solver, step size, and number of iterations that you specify affect how your Simscape model simulates in real time.
- Determine System Stiffness
Choose the right solver for fixed-cost simulation based on the numerical stiffness of your model.
- Choose Step Size and Number of Iterations
Optimize your Simscape model for real-time simulation and avoid overruns by specifying a combination of step size and number of iterations that provides acceptable accuracy and speed.
- 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.