I want to solve a constrained minimization problem and I am asking for some help on how to structure the code.
I understand that fmincon
is what I should use by playing with the argument @mycon
but I am struggling in adapting it to my case. Any suggestion would be extremely appreciated.
These are my files (a
and b
are predefined parameters):
f1.m
function [y1, y2, y3]=f1(x1, x2, a) ... end
f2.m
function w1=f2(x1, x2, y2, y3, b) ... end
Problem that I want to code:
min
y1
w.r.tx1
,x2
such thaty1<=w1