Scheduling using precedence

Problems with syntax of GAMS
Post Reply
ikeato
User
User
Posts: 10
Joined: 7 months ago

Scheduling using precedence

Post by ikeato » 4 weeks ago

Hi,

I am currently working on a scheduling problem which involves adding a precedence constraint to the model.

Code: Select all

sets
i 'number of blocks' /1,2,36,1851,1885,3,37,1852,1886/
mcs 'number of mutually exclusive sets' /1*7/
mc(mcs,i)'specification of mutually exclusive projects' /1.(2,3,36), 2.(1,36), 3.(1,1851), 4.(2,3), 5.(2,37), 6.(2,1852), 7.(2,1886)/
Please any assitance on how to write an equation for a constraint like this 3X1 - X2 - X3 - X36 for the first set under mc(mcs,i) which is 1.(2,3,36).

The second element [2.(1,36)] should also read like this as a constraint 2X2 - X1 - X36.

The multiplier should be based on the number of precedence in the required element in the mc(mcs,i).

Thanks for any help.

Regards,

Isaac Sam

Post Reply