Unstable solution for constrained nonlinear optimization problem!

I have a "simple" nonlinear optimization problem, the objective function is defined as
objective = @(x) p0*(1-x(1))^(2/x(2))-p1*(1-x(1))^(1/x(2));
with two bounded constraints
lb = [0 0];
ub = [1 4];
and defined parameters
p0=2.3;
p1=4;
I used
x = fmincon(objective,x0,A,b,Aeq,beq,lb,ub,nonlincon)
but no matter what initial values I used, the answer will be different, I also tried to use genetic algorithm function, I ended up having different answers each time I ran the function with, under the same initial values, any suggestion why the solution is unstable? and what I can do for better result?
Thank you

 Réponse acceptée

Matt J
Matt J le 1 Oct 2021
Modifié(e) : Matt J le 1 Oct 2021
Well, if you make the change of variables y=(1-x1)^(1/x2) then the objective becomes a simple 1D quadratic
objective = @(x) p0*y^2-p1*y;
with unconstrained global minimum at ymin=p1/(2*p0)=0.8696, which means that a minimum is reached by any pair x1,x2 solving the equation,
(1-x1)^(1/x2)=0.8696
which can be rewritten,
x2=log(1-x1)/log(0.8696)
As x1 traverses its feasible interval [0,1] the right hand side will continuously traverse [0,inf), so there are definitely infinite possible pairs x1 in [0,1] and x2 in [0,4] that can solve this equation and thus achieve the global minimum at ymin.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by