Hi Johan,
Thank you for developing such a great modeling language for us. I am using YALMIP to solve MIP. My constraint set is a little bit complicated, it cannot be written as a matrix form but a function form.
Suppose I define the decision variable as x = sdpvar(1), in my constraint function, I need to compare a vector v with the variable x, and find the first element in v less than x. I use:
idx = find(v<x, 1, 'first');
However, I got the error:
Undefined function 'find' for input arguments of type 'constraint'.
Could you tell me what can I do? Thanks a lot.