Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplex using Eclipse (or other suggested IDE) in Ubuntu Linux with C++

    Posted 07/18/18 03:37 AM

    Originally posted by: diegorossit


    Hi, I have been searching on the web and I could not find a proper guide to set up Cplex in Ubuntu Linux to use it through a C++ application.

    Following some general advices I found in other forums I compiled the blend example from .../ibm/ILOG/CPLEX_Studio128/cplex/examples/x86-64_linux/static_pic

    And give me this:

    g++ -O0 -m64 -O -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -I../../../include -I../../../../concert/include  -L../../../lib/x86-64_linux/static_pic -L../../../../concert/lib/x86-64_linux/static_pic -o blend blend.o -lconcert -lilocplex -lcplex -lm -lpthread -ldl

     

     

    How do I emulate this inside Eclipse (or another IDE you would suggest). Thanks in advance!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplex using Eclipse (or other suggested IDE) in Ubuntu Linux with C++

    Posted 07/18/18 04:27 AM

    What IDE to use depends solely on your preferences. For example, I am fine with using a text editor and make. So the command line is enough for me.

    When it comes to using an IDE then CPLEX behaves exactly like any other 3rd party library. There is nothing special for CPLEX. That probably is why you have a hard time anything specific to CPLEX.

    So what you should do is to figure out how to use a 3rd party library with your favorite IDE in general. Once you have this, the flags on the command line you quoted give you everything you need to enter into the configuration.

    For developing C/C++ in eclipse you will need CDT, I think. This has tutorials so setup compilers and linkers for 3rd party libraries.

    In case you want to use Code::Blocks, you can find instructions here.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Cplex using Eclipse (or other suggested IDE) in Ubuntu Linux with C++

    Posted 07/19/18 02:47 AM

    Originally posted by: diegorossit


    Thank you very much. The Code::Blocks link is just what I was looking for: a straightforward guide for beginners in the triplet (CPLEX; C++; Linux). 

    (I do not why I couldn't find it in a week-time search in the web but anyhow thanks!)

     


    #CPLEXOptimizers
    #DecisionOptimization