Linear Programming using Simulink

조회 수: 4 (최근 30일)
Felipe Michelin
Felipe Michelin 2015년 7월 6일
답변: Yu Jiang 2015년 7월 6일
Hi everyone!
I have a simple question:
It is possible to solve linear programming using Simulink?
I know that there is a function to solve L.P in Matlab, but can I use this function in Simulink?
Thank you for your attention!

답변 (1개)

Yu Jiang
Yu Jiang 2015년 7월 6일
There is no such a block to do direct LP. However, you can put your MATLAB script in an embedded function block or a MATLAB function block and use that to interface with Simulink. For the later one, notice that you need to use "coder.extrinsic" because "linprog" is not supported for code-generation.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by