Error accessing elements within constraint matrix

I updated my answer earlier today once I re-read your question a few times: Julia-Jump Integer Programming Optimization model: issue with multiplying matrix by vector - Stack Overflow.

I think you just want the following?

@constraint(
    m, 
    associate_takt[a in A],
    sum(Z[a, p]*Pt[p] for p in P) <= takt_lim,
)

p.s. I moved your post to the “Optimization (Mathematical)” category, which is why I didn’t see it earlier :smile:

1 Like