Is it possible to include 2D MVar in the objective function? I am using Python 3.7. with Gurobi 9.0.
I get "GurobiError: Variable is not a 1D MVar object" when trying to include 2D MVar in the objective function expression.
Matrix dimensions are compatible and result in a scalar value.
Example of expression: np.ones((1,10)) @ Var[10,5] @ np.ones((5,1))
Please sign in to leave a comment.