Search found 3 matches

by savasthy
5 years ago
Forum: Solvers
Topic: GAMS LP Programming- Troubleshooting guidance needed
Replies: 1
Views: 2858

GAMS LP Programming- Troubleshooting guidance needed

Hi I am trying to solve an LP problem in GAMS (I can only use GAMS). I am new to the optimization work. So I am seeking advise on what all I could/should check for in my code if I get the following message on solving my problem (has 20 variables and 38 constraints- I know seems too many). Also I am ...
by savasthy
5 years ago
Forum: Solvers
Topic: Error: Endogenous function arguments not allowed in linear models
Replies: 2
Views: 6129

Error: Endogenous function arguments not allowed in linear models

Can you help fix error with the code below? I am solving for z1-z7 binary variables but keep getting this error. Set i cities /1*7/; Binary variables z1,z2,z3,z4,z5,z6,z7 1 if selected and 0 otherwise ; variable y ; Equations con1,con2,con3,con4,con5,con6,con7,obj ; obj.. y =E= z1*10+z2*6+z3*7+z4*8+...