Category "gams-math"

Inline index addition in gams

I want to use an index equation to iterate over a tensors, whereas I always want to extract the value at index i and index i+1. An example: Variable x; x.up = 1

Explicitly write the sum of bilinear or trilinear terms in GAMS?

I am working on writing a constraint in GAMS which involves a polynomial with the sum of 1st, 2nd, and 3rd order terms. Since there are 7 variables (from x('1')

Explicitly write the sum of bilinear or trilinear terms in GAMS?

I am working on writing a constraint in GAMS which involves a polynomial with the sum of 1st, 2nd, and 3rd order terms. Since there are 7 variables (from x('1')

GAMS: Linear constraints for logical conditions

How can we write the following if else statements containing decision variable as linear constraints in GAMS? Here x is a the decision variable. if (((x>=0)

Model for scheduling surgeries

I am developing a model in GAMS to schedule surgeries. I think I am not getting the right results and think some equations may not be well formulated. Bellow yo