Originally posted by: ChWeil
Hi guys,
I have a tuple in my model that looks as follows:
machines=2
durations=5
tuple Maint_var { int S; int F;}
(Maint_var} mvar [machines][durations] = ...;
In the data file I wrote:
mvar=#[ [ [<672000,700000>, <872000,1001000>,<1172000,1302000><2072000,2150000><2820000,2900000><3052000,3550000><4072000,4100000>],
[<...,..>,<..,..>,<...,..>,<..,..>,<...,..>,<..,..>],[<...,..>,<..,..>,<...,..>,<..,..>,<...,..>,<..,..>],[<...,..>,<..,..>,<...,..>,<..,..>,<...,..>,<..,..>],[<...,..>,<..,..>,<...,..>,<..,..>,<...,..>,<..,..>] ],
[ [<...,..>....],[<...,..>,..],[<...,..>...],[<...,..>....],[<...,..>,...] ] ]#;
So there are two machines with each five durations which include six tuple pairs each.
Unfortunately, I get a wrong parsing message in the data file.
The tuple could also be read out of an excel file, but I haven't found a valid formulation for this so far.
Can anyone help me with it?
Best regards
CW
#DecisionOptimization#OPLusingCPLEXOptimizer