How to add a condition to a variable - GAMS
问题 In the model I'm trying to build, I have a variable defined as: Variables x(i,j) number of motors produced in month i to be delivered in month j ; In that variable, j must always be equal or greater than i for it to make sense (you can't produce something in this month to be delivered in the previous month). However, I have no clue as to how I can properly model this. I've searched and couldn't find an easy solution to this. Any ideas? 回答1: You should use "variables with limited domains" for