Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  can't create cp model on java

    Posted 02/18/16 07:08 AM

    Originally posted by: Semen


    hi, guys, sorry for my (probably stupid) question, but I can't get:

    I can create cplex model like this:

       import ilog.cplex.*;
       import ilog.concert.*;

       ...

       IloCplex cplex = new IloCplex();

     

    and it works, but my attempt to create cp model:

       import ilog.cp.*;
       import ilog.concert.*;

       ...

       IloCP cp = new IloCP();

     

    failed with reason:

    run:
    Exception in thread "main" java.lang.NoSuchMethodError: SwigDirector_IloIntValueEvalWrapper_eval
        at ilog.cp.cppimpl.cp_wrapJNI.swig_module_init(Native Method)
        at ilog.cp.cppimpl.cp_wrapJNI.<clinit>(cp_wrapJNI.java:652)
        at ilog.cp.cppimpl.IloCP.<init>(IloCP.java:109)
        at ilog.cp.IloCP.<init>(IloCP.java:129)
        at ilog.cp.IloCP.<init>(IloCP.java:121)
        at ddd.Ddd.main(Ddd.java:26)
    C:\Users\Semen.Kosyachenko\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
    СБОРКА ЗАВЕРШЕНА СО СБОЕМ (общее время: 0 секунд) (ASSEMBLY failed)

     

    what I do wrong?

     

    my system: win7 64

    p.s. sorry for my english

     

     


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: can't create cp model on java

    Posted 02/18/16 10:58 AM

    Originally posted by: ol


     

    Hello,

    - Ensure your CLASSPATH environment variable contains a reference to the
        file ILOG.CP.jar, which was installed when you installed
        CPLEX Optimization Studio. This file is generally located at

        <CPLEXStudioInstallDir>\cpoptimizer\lib\ILOG.CP.jar

    - Ensure your PATH environment variable contains a reference to the
        relevant COS libraries. cp_wrap_cpp_java1263.dll and cplex1263.dll
        These libraries are generally located at:
        <CPLEXStudioInstallDir>\cpoptimizer\bin\<PLATFORM> and
        <CPLEXStudioInstallDir>\cplex\bin\<PLATFORM>
        where <PLATFORM> can be either x64_win64 or x32_win32

     

    Rehards,

    Olivier


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: can't create cp model on java

    Posted 02/18/16 01:00 PM


  • 4.  Re: can't create cp model on java

    Posted 02/19/16 01:05 AM