odow
8
Hi there! Since you’re new to Julia, please read this post.
In particular, it’s easier to help if you provide a minimal working example that we can copy-paste and see the same result.
but directly evaluated (0)
Presumably, there is a typo somewhere. I can’t say more because I can’t run your code. The direct equivalent of your Python constraint is:
@constraint(
model,
[i=1:I_round, k=1:K_window],
sum(r_i_j[i, j] * y_i_k[i, k] * s_j_k[j, k] for j in 1:J) >= T1 * y_i_k[i, k],
)
1 Like