Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  running SchedRCPSP example on Mac ?

    Posted 07/19/13 10:33 AM

    Originally posted by: 0BKU_derrien_alban


    Hi,

     

    I just installed the CPLEX_stupio1251 in order to use cpoptimizer.

    I am currently trying to get running the code given as example for a RCPSP problem.

    Using java, I built a new project with the file given :  CPLEX_Studio1251/cpoptimizer/examples/src/java/SchedRCPSP

    then added the jar: CPLEX_Studio1251/cpoptimizer/lib/ILOG.CP.jar

    But I do get the error: "

    Native code library failed to load: ensure the appropriate library (opl1251.dll/.so) is in your path.

    Exceptions:

    no opl1251 in java.library.path

    no opl_lang_wrap_cpp in java.library.path

    ...

    "

    From my search I need to add a native library from opl .....

    but the thing is that I am a mac user, and opl is not compatible http://pic.dhe.ibm.com/infocenter/prodguid/v1r0/clarity-reports/report/html/softwareReqsForProduct?deliverableId=1357752720677&osPlatform=Mac%20OS

     

    What I am missing ?

     

    Regards,

    Alban.


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: running SchedRCPSP example on Mac ?

    Posted 07/19/13 12:31 PM

    Originally posted by: rdumeur


    Dear Alban,

    What version of MacOS X are you using?

    Also, please run  the CP optimizer java examples installed in <installdir>/cpoptimizer/examples/src/java. They should function correctly when you execute them using the makefile in <installdir>/cpoptimizer/examples/<platform>/<arch>.

    Looking at env variables used in the makefile, we can see directives as:CPCLASSPATH = ../../../lib/ILOG.CP.jar
    LIBRARYPATH = ../../../bin/x86-64_osx:$(CPLEXDIR)/bin/x86-64_osx
    JAVAEXDIR = ../../../examples/src/java
        @echo "Currently, JAVA_HOME = $(JAVA_HOME)"
        DYLD_LIBRARY_PATH=$(LIBRARYPATH):$$DYLD_LIBRARY_PATH $(JAVA) $(JAVAFLAGS) -classpath $(CPCLASSPATH):. Color

    So please make sure that the correct DYLD_LIBRARY_PATH is set when invoking your example.

    I hope this helps,

    Cheers,

     


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: running SchedRCPSP example on Mac ?

    Posted 11/09/17 05:23 PM

    Originally posted by: nickelpickle


    Hi, I have the same problem as the original poster, and rdumeur's solution didn't help.  I can compile and run the example CP files using the makefile included with the distribution, but I can't run any CP code from Eclipse using MacOS.  I've set the DYLD_LIBRARY_PATH variable, to no avail.  Any suggestions?  


    #CPOptimizer
    #DecisionOptimization