필터 지우기
필터 지우기

Minimize a function under several constraints

조회 수: 4 (최근 30일)
Imanitxka imane
Imanitxka imane 2022년 4월 13일
댓글: Matt J 2022년 4월 13일
Hello community can anyone help me solve this problem please.
I have to minimize this:
F= P1*X1+P2*X2+P3*X3+P4*X4
s.t P1X1+P3X3 ≤ L1
P2X2+P4X4 ≤ L1
P1X1+P2X2=E1
P3X3+P4X4=E2
P1,P2,P3,P4,L1,L2,E1,E2 are known.
X1,X2,X3,X4 are the unknown variables, they must be binary .

답변 (2개)

Matt J
Matt J 2022년 4월 13일
편집: Matt J 2022년 4월 13일
  댓글 수: 2
Imanitxka imane
Imanitxka imane 2022년 4월 13일
Implementation with intlinprog, please Matlab code
Matt J
Matt J 2022년 4월 13일
In fact my program is very large, I reduce it just to find a simple solution
So you are just looking for simplified examples? If so, the Examples in the documentation should serve quite well,

댓글을 달려면 로그인하십시오.


Steven Lord
Steven Lord 2022년 4월 13일
Any values that satisfy your first two constraints are a solution to the problem since your objective function is constant. Substitute the third and fourth constraints into the objective function to see that this is the case.
In this small case you don't need intlinprog. Brute force is sufficient.
  댓글 수: 1
Imanitxka imane
Imanitxka imane 2022년 4월 13일
In fact my program is very large, I reduce it just to find a simple solution

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by