How to define multi-dimensional sets with assigning values
Posted: Thu May 14, 2020 5:37 pm
Hello everybody,
I have the following CSV file, it is like an array with four entries "(i, s, t, f)", in which "i" is the indicator and "s, t, f" are its assigned values.
for this, I have written the next code.
But the code gives the result like this;
This is not what I want since values are not accessible.
Thank you for your helps.
I have the following CSV file, it is like an array with four entries "(i, s, t, f)", in which "i" is the indicator and "s, t, f" are its assigned values.
for this, I have written the next code.
Code: Select all
Sets
i /1*300/
s /0*23/
t /1*24/;
Sets
x(i,s,t)
/
$ondelim
$include Pairs.csv
$offdelim
/;
This is not what I want since values are not accessible.
Thank you for your helps.