Hi ampl users,
I got a new question. Since AMPL does not allow command like "if....
how to convert the following sentence into a constrain which is
param a (i,j)
var b (i,j)
if b (i,j) > 0, then a (i,j) < 30
If you are using a modeling systems such as AMPL, one of the first concepts you need to understand is the role of parameters and variables. As long as you don’t understand this, there is probably very little you can actually write down correctly.