Hi all,
I defined set
i /1, 2, 3/
j /1, 2/
and complex set
itoj /1.1, 2.2, 3.2/
Based on complex set “itoj”, I want to define a parameter
“D(itoj)”.
How can I assign this parameter by using .inc file? Am I
doing it correctly by writing .inc file like following?
D(“1”,“1”) = 0.5;
D(“2”,“2”) = 1.3;
D(“3”,“2”) = 2.4;
Or should I write:
D(“1”) = 0.5;
D(“2”) = 1.3;
D(“3”) = 2.4;
?
Thanks for teaching me so much in past months.
–
Best regards,
Peng (Dennis) Wei
Lili Du
Research Associate
NEXTRANS CENTER
USDOT Region V Regional UTC
3000 Kent Avenue
West Lafayette, IN 47906
765-496-9768 (office)
ldu@purdue.edu
\
Parameter D(i,j)/
$include myfile.inc
/;
the include file:
1.1 0.5
2.2 1.3
3.2 2.4
2011/6/7 Lili Du
Hi all,
I defined set
i /1, 2, 3/
j /1, 2/
and complex set
itoj /1.1, 2.2, 3.2/
Based on complex set “itoj”, I want to define a parameter
“D(itoj)”.
How can I assign this parameter by using .inc file? Am I
doing it correctly by writing .inc file like following?
D(“1”,“1”) = 0.5;
D(“2”,“2”) = 1.3;
D(“3”,“2”) = 2.4;
Or should I write:
D(“1”) = 0.5;
D(“2”) = 1.3;
D(“3”) = 2.4;
?
Thanks for teaching me so much in past months.
–
Best regards,
Peng (Dennis) Wei
Lili Du
Research Associate
NEXTRANS CENTER
USDOT Region V Regional UTC
3000 Kent Avenue
West Lafayette, IN 47906
765-496-9768 (office)
ldu@purdue.edu
\
Edson Valle
edsoncv@gmail.com
–
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.