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

Antworten (1)

Torsten
Torsten am 21 Mär. 2018
Bearbeitet: Torsten am 21 Mär. 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 Kommentar

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.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 21 Mär. 2018

Kommentiert:

am 6 Mai 2019

Community Treasure Hunt

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

Start Hunting!

Translated by