Originally posted by: SystemAdmin
[agus said:]
Hi,
My model produces lots of obsolete decision variables and most of them are integer variables; Will it significantly affect the running time of my model, even though they are never used in any constraints?
Is it possible to create a condition when you declare the decision variable, for example:
This statement:
dvar int+ x[Flights][Nodes]
will create all possible combination of every flight with every node, but in reality not every flight visit every node. One flight only visits several nodes so it is not necessary to create a decision variable where the flight does not visit the node.
Thanks
Agus
#DecisionOptimization#OPLusingCPLEXOptimizer