Array variable - matrix multplication in JuMP

Hi there! Take a read of the first post in Please read: make it easier to help you. It explains how you can format your post, and why you should provide code instead of screenshots.

JuMP only supports matrix operators up to quadratic terms. It doesn’t support cubic.

My guess is you want something along the lines of:

model = Model()
@variable(model, 0 <= x[1:8, 1:8] <= 1)
@variable(model, y[1:8, 1:31])
@constraint(model, [t = 1:30], x * y[:, t] .== y[:, t + 1])
2 Likes