Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  transportation time

    Posted Sun June 17, 2012 09:49 AM

    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 traveltimetransportation_mode=…
    int arrival_period =…;
    arrival_period = period+ traveltimetransportation_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


  • 2.  Re: transportation time

    Posted Sun June 17, 2012 12:49 PM

    Originally posted by: SystemAdmin


    CPLEX comes with tons of examples and the distribution also has several tutorials. Did you look at any of them to learn how to write an optimization model in OPL? All the documentation is available online here. Maybe start with "IDE and OPL" section.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: transportation time

    Posted Sun June 17, 2012 10:04 PM

    Originally posted by: RaRaChen


    Dear DanielJunglas

    I have read the examples for a long time, but I still can not find what's wrong with it. Maybe I loss something. Cplex can not mix one dimension and two dimension together. I need t + t,m <=T(t+ t,m=at(arrival period)).The "at" will trade off my decision variable.

    thanks a lot
    #CPLEXOptimizers
    #DecisionOptimization