Show bounds for various optimization variables.
Create a continuous optimization variable array and display its bounds.
Set lower bounds of 0 on all elements of x
, and set upper bounds on the first row.
0 <= x(1, 1) <= 3
0 <= x(2, 1)
0 <= x(1, 2) <= 5
0 <= x(2, 2)
Create a binary optimization variable array and display its bounds.
0 <= binvar(1, 1) <= 1
0 <= binvar(2, 1) <= 1
0 <= binvar(1, 2) <= 1
0 <= binvar(2, 2) <= 1
Create a large optimization variable that has few bounded elements, and display the variable bounds.
-20 <= bigvar(55, 4, 3)
-40 <= bigvar(20, 5, 30)
bigvar(35, 3, 35) <= -200