Decision Optimization

Decision Optimization

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

 View Only
  • 1.  IloCplex::addMIPStart & IloCplex::use(IloCplex::Aborter)

    Posted Sun October 16, 2011 03:09 PM

    Originally posted by: bluecoder


    Hi,

    I am having trouble with those two functions mentioned in the topic. When I try to use them, I get a linker error stating that these functions do not exist. I am using g++ 4.6.1 in c++0x mode and the detailed error message is the following:

    somefile.cpp:(.text+0xa29): undefined reference to `IloCplex::addMIPStart(IloNumVarArray, IloNumArray, IloCplex::MIPStartEffort, char const*)'
    somefile.cpp:(.text+0xf82): undefined reference to `IloCplex::use(IloCplex::Aborter)'

    I link against libconcert.a, libilocplex.a and libcplex.a from these paths:

    http://.../concert/lib/x86-64_sles10_4.1/static_pic/libconcert.a
    http://.../cplex/lib/x86-64_sles10_4.1/static_pic/libcplex.a
    http://.../cplex/lib/x86-64_sles10_4.1/static_pic/libilocplex.a

    I do not have any linker trouble with any of the other functions I use (so building & solving ILPs works just fine). The license I have is the following, in case it is some license issue:

    IBM ILOG License Manager: "IBM ILOG Optimization Suite for Academic Initiative" is accessing CPLEX 12 with option(s): "e m b q ".

    The Cplex version is 12.3. I am not really sure what additional information could be usefull to solve this problem... so please feel free to ask.

    Best regards,
    Jörg
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: IloCplex::addMIPStart & IloCplex::use(IloCplex::Aborter)

    Posted Sun October 16, 2011 03:12 PM

    Originally posted by: bluecoder


    The paths do not contain "http://", somehow the forum software thought it would be a good idea to add that.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: IloCplex::addMIPStart & IloCplex::use(IloCplex::Aborter)

    Posted Mon October 17, 2011 08:24 PM

    Originally posted by: SystemAdmin


    Are you able to compile and link the ilomipex4.cpp sample which comes with the distribution (found under the <CPLEX_Studio123>\cplex\examples\src\cpp directory) without errors? This particular sample uses the 'IloCplex::use(IloCplex::Aborter)' method and will help with the issue isolation. If the sample compiles/links and executes (with the 'a' argument) without errors, then you may want to compare the use of the method between your code and the sample. If the sample has problems linking then please let us know more about your system (machine, OS, compiler with versions). If you are using a makefile, can you send that as well?
    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: IloCplex::addMIPStart & IloCplex::use(IloCplex::Aborter)

    Posted Tue October 18, 2011 06:30 AM

    Originally posted by: bluecoder


    Thanks for the hint. It helped me track down the problem! The problem was that I included <ilcplex/ilocplexi.h> instead of <ilcplex/ilocplex.h> and somehow it worked until I tried to call the IloCplex::use or IloCplex::addMIPStart functions.
    #CPLEXOptimizers
    #DecisionOptimization