The shortest Route problem
Posted: Thu Aug 30, 2018 3:29 pm
Hi everyone,
As I am new to GAMS and really want to get my head around it for modelling, I tried to compile the examples in the GAMS Studio library myself. I could not really understand the x(i,ip,ipp) in the example given, as I thought the decision variable should be a binary to see whether a certain arc is taken. I have compiled the problem with the binary variable instead but had some problems with the constraints for the product flow balance in each node.
Can anyone tell me if to model with a binary variable, how to rectify this? Otherwise, what does the x(i,ip,ipp) mean exactly in the given example? Thank you very much indeed!
As I am new to GAMS and really want to get my head around it for modelling, I tried to compile the examples in the GAMS Studio library myself. I could not really understand the x(i,ip,ipp) in the example given, as I thought the decision variable should be a binary to see whether a certain arc is taken. I have compiled the problem with the binary variable instead but had some problems with the constraints for the product flow balance in each node.
Can anyone tell me if to model with a binary variable, how to rectify this? Otherwise, what does the x(i,ip,ipp) mean exactly in the given example? Thank you very much indeed!