Hi johan,
when i was trying to expand my constraints list with this command:
Constraints = [Constraints, -cos(obst(o,3))*State(k,1,v) - sin(obst(o,3))*State(k,2,v) <= -avoidanceDist
- obst(o,4)*k*dt - cos(obst(o,3))*obst(o,1) - sin(obst(o,3))*obst(o,2)
+ bigM*(bObstAvoid(k,1,o,v)+bObstAvoid(k,2,o,v))];
this error is throw to me,
One of the constraints evaluates to a DOUBLE variable
and when i check for the length of the constraints list i found that it is expanded by two inequalities of size 1*1 while it is expected to be expanded only by one inequalitz of size 1*1, as when i was trying to evaluate the constraint in the command window while debugging its' result is really what is expected, one inequality of size 1*1.
State(k,1,v), State(k,2,v), (bObstAvoid(k,1,o,v), bObstAvoid(k,2,o,v); these elements are variable , the State are real variables and the bObstAvoid are integer variables.
hope that you could help me.
Thanks in advance