MATLAB Answers

non-linear optimization with complex constrains

1 view (last 30 days)
bo peng
bo peng on 22 Dec 2020
Commented: bo peng on 13 May 2021
hi,my friends
i have a problem need your help
My problem as following:
min f(x)=s(1)+s(2)+s(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

Accepted Answer

Alan Weiss
Alan Weiss on 24 Dec 2020
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

More Answers (0)


Community Treasure Hunt

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

Start Hunting!