Originally posted by: RaRaChen
hello! Everyone I'm a new hand on CPLEX. I meet a problem on it, the question as following:
For example, I have to transport a product by truck/ship in period=1, and travel time is 1 period(truck) or 2 periods(ship). Travel time is based on the transportation mode choose. Finally the arrival period must less than the total periods.
int period=…;
range periods=1..period;
{string} transportation_mode=…;
int traveltime
transportation_mode=…
int arrival_period =…;
arrival_period = period+ traveltime
transportation_mode and arrival_period <=period
.
Is there any keyword or code I need. I don’t know how to do. Could you please give me an answer?
Thanks a lot
RaRaChen
#CPLEXOptimizers#DecisionOptimization