Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  question: call qpex1.c using linux

    Posted 02/13/12 06:49 PM

    Originally posted by: yhlvqz


    I download cplex academic version from IBM: cplex_studio123.acad.linux-x86-64.bin

    I tried to run qpex1.c which is example giving by IBM using linux.
    gcc -i/home/.../ILOG/cplex/include /home/.../src/c/qpex1.c

    but it showed
    /tmp/ccAYMlp7.o: in function 'main':
    qpex1.c:(.text+0xba): undefined reference to "CPXopenCPLEX"
    ......
    .....

    Anyone saw those errors before and have solution to avoid it. Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: question: call qpex1.c using linux

    Posted 02/14/12 01:50 AM

    Originally posted by: SystemAdmin


    You need to link with libcplex.a. This should be explained in the user manual.
    CPLEX also comes with an Makefile that shows how to build the examples. Try the following:
    cd /home/.../ILOG/cplex/examples/x86-64_sles10_4.1/static_pic
    make qpex1
    

    This should build the qpex1 example properly. It will also display the commands executed. The Makefile is in that same directory, in case you want to look at it.
    #CPLEXOptimizers
    #DecisionOptimization