Create Binary Optimization Variables
Create an optimization variable named x of size 3-by-3-by-3 that represents binary variables.
x = optimvar('x',3,3,3,'Type','integer','LowerBound',0,'UpperBound',1)
x = 3×3×3 OptimizationVariable array with properties: Array-wide properties: Name: 'x' Type: 'integer' IndexNames: {{} {} {}} Elementwise properties: LowerBound: [3×3×3 double] UpperBound: [3×3×3 double] See variables with showvar. See bounds with showbounds.