Hello fellow optimizers
I'm intending to add a constraint which prohibits the flow between two specific cities to be too high.
I'm intending to this using the following in the .mod file:
set N:= Kiruna Stockholm Boliden;
var x{N,N} binary;
minimize sum{i in N, j in N} x[i,j];
subject to Constraint1:
sum{i in N, j in N} x[Kiruna, Stockholm] <= 4;
However this gives me errors. How to do I properly conduct this summarization?
Thanks in advance!