Display Optimization Constraint
Display an array of optimization constraints.
x = optimvar('x',3,2);
constr = sum(x,2) <= [1;3;2];
showconstr(constr)
x(1, 1) + x(1, 2) <= 1 x(2, 1) + x(2, 2) <= 3 x(3, 1) + x(3, 2) <= 2
Display an array of optimization constraints.
x = optimvar('x',3,2);
constr = sum(x,2) <= [1;3;2];
showconstr(constr)
x(1, 1) + x(1, 2) <= 1 x(2, 1) + x(2, 2) <= 3 x(3, 1) + x(3, 2) <= 2