How can i use two variables with fmincon?
Show older comments
I have a function like this:
TL=@(Y,H) TL_H(H)+TL_Y(Y,H)
When i run this code, i get an error message.
x0=[0,0];
A=[1,-1.29412]
b=1.01634
x=fmincon(TL,x0,A,b)
Not enough input arguments.
Error in
Error in (line 195)
x=fmincon(
Caused by:
Failure in initial objective function evaluation. FMINCON cannot continue.
How can i make avaible my function for using with fmincon?
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Surrogate Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!