Hi Johan,
A follow-up question. Is it possible to convert a yalmip expression into a matlab function handle so that the evaluation is faster compared to using "replace"?
For example, with
sdpvar x
y = x^2+1;
Instead of doing replace(y,x,1), can I do
y_func(x) with y_func is the generated matlab function handle?
Thank you.
Best
Pan