Hello,
I need to define the parameter “f” and variable “x” over the dynamic set “j”, and the parameter “d” over the dynamic set “a”. For this, I do as follows;
Sets
k /0*24/
i(k) /0*24/
q /1*300/
s /0*23/
t /1*24/;
Set
j(q,s,t)
/
$ondelim
$include A-ODPairs.csv
$offdelim
/;
Set
a(s,t)
/
$ondelim
$include A.csv
$offdelim
/;
Parameters
f(q,s,t)
/
$ondelim
$include A-ODPairs.csv
$offdelim
/;
Parameters
d(s,t)
/
$ondelim
$include A.csv
$offdelim
/;
Binary Variables
z(q,s,t);
If I define them as “y(j)”, “f(j)”, and “d(a)”, I will receive error. Why does this happen? Is there any other convenient way to code them?
Thank you.