I want to optimize p from testfun(). However I want to return additional output variable (b) from the optimization.
Function [p, b] = testfun()
x = fmincon(@testfun, x0,options)
where b is the additional variable passed to fsolve, I am looking to achieve something like this,
[x,b] = fmincon(x0,options)
How can I do that?
Thx
Nana
Function [p, b] = testfun()
x = fmincon(@testfun, x0,options)
where b is the additional variable passed to fsolve, I am looking to achieve something like this,
[x,b] = fmincon(x0,options)
How can I do that?
Thx
Nana