It is not currently possible to pointwise multiply a 1-D ndarray with a 1-D MVar of length one:

$$\begin{align} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} &= \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} x. \end{align}$$

The following code results in a `TypeError`:

`import gurobipy as gp`

import numpy as np

m = gp.Model()

x = m.addMVar(1)

y = m.addMVar(3)

m.addConstr(y == np.ones(3) * x) # error!

Instead, this operation can be recast as a matrix-vector product:

`import gurobipy as gp`

import numpy as np

m = gp.Model()

x = m.addMVar(1)

y = m.addMVar(3)

m.addConstr(y == np.ones((3, 1)) @ x)

**Note:** Gurobi 9.0 introduced the first version of the Python matrix API. The developers are continually working to improve the usability of the matrix API.