Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplex code in java

    Posted 10/07/14 09:59 AM

    Originally posted by: giannil


    Hello,

    I am new in cplex and i have to program a timetabling problem.

    Does anyone has an example of this cplex code http://pic.dhe.ibm.com/infocenter/odmeinfo/v3r5/index.jsp?topic=%2Filog.odms.ide.odme.help%2FContent%2FOptimization%2FDocumentation%2FODME%2F_pubskel%2FODME_pubskels%2Fstartall_ODME35_Eclipse1725.html in java? When we have this we can try to make this problem in java.

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplex code in java

    Posted 10/07/14 11:08 AM

    Did you look at the examples in opl/examples/opl_interfaces/java, cpoptimizer/examples/src/java, and cplex/examples/src/java? They should illustrate how to interface with CPLEX in Java.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Cplex code in java

    Posted 10/08/14 08:56 AM

    Originally posted by: giannil


    Yes, I found the examples there but not the example that describes the timetabling problem. Is it possible to share a link where I can find this code of a copy of this cody.

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Cplex code in java

    Posted 10/28/14 03:11 AM

    Indeed, for the time tabling example there is no Java code. Since this is about a constraint programming example you are likely better off to ask your question on one of the CP Forums (I suggest the OPL related one).

    Do you just want to load .mod file into Java and solve it or do you want to dynamically build up the model? In the first case opl/examples/opl_interfaces/java/oplrunsample should tell you waht to do. This provides Java code that loads and solves a .mod file.


    #CPLEXOptimizers
    #DecisionOptimization