Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How use cplex in Xcode in Mac os

    Posted 08/21/12 12:25 AM

    Originally posted by: Zhiyuan6600


    I am a new user of cplex. I am using Xcode as IDE in Mac os.
    I want to know what should I do in Xcode for using Xcode ?
    I can't find any issues about that.
    Who can help me,thanks in advance.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How use cplex in Xcode in Mac os

    Posted 08/27/12 09:52 AM

    Originally posted by: SystemAdmin


    In general, CPLEX is not different from any other library.
    What I would do is
    1. Go to COS_INSTALL/cplex/examples/x86-64_darwin/static_pic and type 'make run'. This will build and run all C, C+, and Java examples that are shipped with CPLEX. For C and C++ examples it will also print the command lines used for compiling and linking.
    2. Configure Xcode so that it produces the exact same command lines and you should be done.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: How use cplex in Xcode in Mac os

    Posted 08/29/12 06:52 AM

    Originally posted by: Zhiyuan6600


    tanks,it works
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: How use cplex in Xcode in Mac os

    Posted 08/29/12 06:59 AM

    Originally posted by: Zhiyuan6600


    Installation of CPLEX for mac os
    1.download an academic version in form of .bin file.
    2.open a terminal, go to the subdirectories of the file by the command such as "cd /user/your name/download" 3.execute "cplex*.bin" command
    4.then follow the instructions of installer step by step
    5.install the Xcode from apple store for free.
    6.in preferences->downloads->components of Xcode , install the command line tools
    7.then it works in the terminal by command lines
    8.if you want to use CPLEX in the Xcode IDE, set up a new c++ project, and do something as following:
    8.1 add *.h and *.lib path in the "searching path" and "library path"
    8.2 add -DIL_STL "in other c flags"
    8.3 add -lilocplex -lconcert -lcplex in "other linker flags"

    Note Mac book air with mac os is a 64 bit system. Don't assign the library to 32bit path, or more link errors will appear .
    #CPLEXOptimizers
    #DecisionOptimization