Constrained Optimization of Implicitly Defined Function

Is there an algorithm in Matlab for the type of problem I present below?
Implicitly defined function y is to be optimized in an nx1 vector x, subject to linear constraints on x:
max y(x): p(1)*exp(r(1)/y) + ... + p(n)*exp(r(n)/y) - 1 = 0;
such that
x'*ones(n,1) = 1;
x'*r = c;
where mx1 vector p is given, c is given constant, and mx1 vector r=A*x; where A is a given mxn matrix

Respuestas (1)

Torsten
Torsten el 21 de Mzo. de 2018
Editada: Torsten el 21 de Mzo. de 2018
Sure. Use "fmincon" to solve
max y
s.t.
p(1)*exp(r(1)/y) + ... + p(n)*exp(r(n)/y) - 1 = 0
x'*ones(n,1) = 1
x'*A*x = c
But A has to be an (nxn) matrix !
Best wishes
Torsten.

1 comentario

X. Wu
X. Wu el 6 de Mayo de 2019
I am dealing with the same question. My objective function is also y as a implicit function of x. I am not sure how I should write the code using fmincon.
Wish to hear your suggestions.

Iniciar sesión para comentar.

Preguntada:

el 21 de Mzo. de 2018

Comentada:

el 6 de Mayo de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by