non-linear optimization with complex constrains

조회 수: 1 (최근 30일)
bo peng
bo peng 2020년 12월 22일
댓글: bo peng 2021년 5월 13일
hi,my friends
i have a problem need your help
My problem as following:
min f(x)=s(1)+s(2)+s(3)
s.t.
s(1)=0.5x(1)^2+w
s(2)=-4x(2)+7
s(3)=-3x(3)^3+6x^2
x(1)+x(2)+x(3)=100
0<x(1)<x(2)<x(3)
where x(1)<20 then w=100,
else w =500
Do you know how to convert constrains to standard form ,g(x) >= 0
which function can solve the question above, thank you

채택된 답변

Alan Weiss
Alan Weiss 2020년 12월 24일
I think that you need to solve two different problems, one assuming w =100, one assuming w = 500. Your objective is discontinuous at x(1) = 20, and Optimization Toolbox solvers cannot handle a discontinuous objective.
You could try a solver from Global Optimization Toolbox such as patternsearch.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
bo peng
bo peng 2021년 5월 13일
this is a good answer, i think you are right

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by