필터 지우기
필터 지우기

Use MATLAB to write code to solve the problem

조회 수: 2 (최근 30일)
Tran Paul
Tran Paul 2018년 9월 17일
댓글: Tran Paul 2018년 9월 17일
find min f(x1,x2,x3,x4) = 0.1x(1)^2+0.4x(2)^2+0.5x(3)^2+0.2x(4)^2+x(1)+2X(2)+3x(3)+x(4)+6
Find min f(x1,x2,x3,x4) and the corresponding values of x1, x2, x3, x4 subject to
2x1 + x2 + 2x3 + x4 = 5
x1 + 2x2 + 4x3 + 5x4 ≤ −21
18 x1 ≤ 8
20 x2 ≤ 16
14 x3 ≤ 13
15 x4 ≤ 5
  댓글 수: 4
Aquatris
Aquatris 2018년 9월 17일
There is no right or wrong way of choosing initial point, as long as initial point satisfies the constraints. One method is to solve the problem using different initial points that are randomly chosen and picking the solution that gives you the minimum function value.
Otherwise you can consider using global optimization techniques, such as genetic algorithm and particle swarm optimization.
Tran Paul
Tran Paul 2018년 9월 17일
I got it, thank you so much

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

답변 (1개)

SYED ABOU ILTAF HUSSAIN
SYED ABOU ILTAF HUSSAIN 2018년 9월 17일
here is the code for your problem
  댓글 수: 1
Tran Paul
Tran Paul 2018년 9월 17일
Thank you so much. But I want to ask you why don't we made the code following the linear equality and inequality constraints. Either your codes or my code, we got the same solutions.
if true
% code
end

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

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by