What wrong with this linear simlp(f, A, b) problem?
이전 댓글 표시

This is my code for the above problem but the answer seems wrong? Can anyone tell me the problems?
f = [-0.4, -0.45];
A = [1, 1; -100 -150; -750, -700; -1 0; 0 -1];
b = [7; -650; -4000; 0; 0];
simlp(f,A,b)
ans =
0.0000
7.0000
댓글 수: 1
Walter Roberson
2021년 6월 10일
simlp() appears to be an undocumented internal Simulink function, that has nothing to do with linear programming ?
답변 (1개)
Walter Roberson
2021년 6월 10일
0 개 추천
Linear programming is typically coded in terms of minimization. You want to minimize the costs. But you have expressed your costs as negative, so if simlp() is like most linear programming solvers, you are effectively asking to maximize the costs.
카테고리
도움말 센터 및 File Exchange에서 Linearization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!