주요 콘텐츠

코드 생성

실시간 타깃에 코드 생성 및 제어기 배포

Simulink® 또는 MATLAB®에서 모델 예측 제어기를 검증한 후에는 코드를 생성하여 실시간 제어 애플리케이션에 배포할 수 있습니다. 자세한 내용은 Generate Code and Deploy Controller to Real-Time Targets 항목을 참조하십시오.

함수

모두 확장

선형 MPC

getCodeGenerationDataCreate data structures for mpcmoveCodeGeneration
mpcmoveCodeGenerationCompute optimal control moves with code generation support

비선형 MPC

getCodeGenerationDataCreate data structures for nlmpcmoveCodeGeneration
nlmpcmoveCodeGenerationCompute nonlinear MPC control moves with code generation support

MEX 파일 생성하기

buildMEXBuild MEX file that solves an MPC control problem
mpcActiveSetSolverSolve quadratic programming problem using active-set algorithm
mpcActiveSetOptionsCreate default option set for mpcActiveSetSolver
mpcInteriorPointSolverSolve a quadratic programming problem using an interior-point algorithm
mpcInteriorPointOptionsCreate default option set for mpcInteriorPointSolver
setCustomSolverConfigures an MPC object to use the QP solver from Optimization Toolbox as a custom solver (R2021b 이후)

블록

모두 확장

MPC ControllerSimulate model predictive controller
Adaptive MPC ControllerSimulate adaptive and time-varying model predictive controllers
Explicit MPC ControllerExplicit model predictive controller
Multiple MPC ControllersSimulate switching between multiple implicit MPC controllers
Multiple Explicit MPC ControllersMultiple explicit MPC controllers
Nonlinear MPC ControllerSimulate nonlinear model predictive controllers
Adaptive Cruise Control SystemSimulate adaptive cruise control using model predictive controller
Lane Keeping Assist SystemSimulate lane-keeping assistance using adaptive model predictive controller
Path Following Control SystemSimulate path-following control using adaptive model predictive controller

도움말 항목

코드 생성 기본

Simulink에서 코드 생성

MATLAB에서 코드 생성

CUDA 코드 생성

사용자 지정 솔버 사용하기

OPC 시뮬레이션