hello everyone
i wrote this model in gams(data are imported from excell):
option optcr=0;
option optca=0;
option reslim=600;
sets
j number of job /1100/
alias(j,k);
parameters
d(k)
$call =xls2gms r=l1:l100 i=data.xls o=pard.inc
$include pard.inc
w(j)
$call =xls2gms r=e1:e100 i=data.xls o=pard.inc
$include pard.inc
p(j)
$call =xls2gms r=b1:b100 i=data.xls o=pard.inc
include pard.inc
;
variables
u(j)
z;
binary variable u(j);
equations
obj
EDD(k);
obj.. z=e=sum(j,w(j)*u(j));
EDD(k).. sum(j(ord(j)<=ord(k)),p(j)(1-u(j)))=l=d(k);
model abc /all/;
solve abc using mip minimizing z;
but there are this errors on the last row: error256, error66.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/qzolFa0nnYgJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hi Gerami,
Can you post the problems’ description ?
Regards,
Michael
Τη ΤÏίτη, 6 ÎοεμβÏίου 2012 3:59:48 μ.μ. UTC+2, ο χÏήστης gerami ÎγÏαψε:
hello everyone
i wrote this model in gams(data are imported from excell):
option optcr=0;
option optca=0;
option reslim=600;
sets
j number of job /1100/
alias(j,k);
parameters
d(k)
$call =xls2gms r=l1:l100 i=data.xls o=pard.inc
$include pard.inc
w(j)
$call =xls2gms r=e1:e100 i=data.xls o=pard.inc
$include pard.inc
p(j)
$call =xls2gms r=b1:b100 i=data.xls o=pard.inc
include pard.inc
;
variables
u(j)
z;
binary variable u(j);
equations
obj
EDD(k);
obj.. z=e=sum(j,w(j)*u(j));
EDD(k).. sum(j(ord(j)<=ord(k)),p(j)(1-u(j)))=l=d(k);
model abc /all/;
solve abc using mip minimizing z;
but there are this errors on the last row: error256, error66.
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/Ksm0vtPDgYcJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.