필터 지우기
필터 지우기

Utilizing fmincon or fminsearch

조회 수: 4 (최근 30일)
Jami Turnquist
Jami Turnquist 2020년 3월 10일
답변: Puru Kathuria 2020년 3월 13일
I'm given these objective functions:
Objective function
Minf = 55x1 + 90x2 + 105x3 + 55x4 + 85x5 + 120x6
X1,x2,x3</ 0.5
Minf = 65x1 + 100x2 + 115x3 + 55x4 + 85x5 + 120x6
X1,x2,x3 >/ 0.5
and these constraints:
Inequality/constraints
C1: x1 + x4 >/ 0.9
C2: x2 + x5 >/ 0.7
C3: x3 + x6 >/ 0.3
Nonnegativity: Xi > 0
X1 + x2 + x3 </ 0.5
X1 = 0.8
X2 = 0
X3 = 0.3
X4 = 0.1
X5 = 0.7
X6 = 0
F=140.50
>/0.5
X1= 0.08
X2 = 0
X3 = 0.3
X4 = 0.1
X5 = 0.7
X6 = 0
F= 151.50
And told fmincon or fminsearch would be the easiest way to solve. Any suggestions?
  댓글 수: 3
Jami Turnquist
Jami Turnquist 2020년 3월 10일
How do you code this for this many variables though?
Matt J
Matt J 2020년 3월 11일

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

답변 (1개)

Puru Kathuria
Puru Kathuria 2020년 3월 13일
Hi,
I understand that you want to solve this optimization problem. This can be achieved using linprog. Please go through the following link to see how to use linprog for your problem.

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by