Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Calling Cplex through C program

    Posted 06/19/08 05:46 AM

    Originally posted by: SystemAdmin


    [juniormints said:]

    Hi, I'm new to using the C Callable Libraries.  I wrote a program in C that analyzes and formats data for an LP.  Then, I want to call Cplex to solve the problem, add additional constraints, then solve again (and do this many times).  I tried to follow the syntax in examples lpex1.c, lpex2.c, and lpex3.c.  When I compile my C program in cygwin using gcc (I typed gcc test.c), the error is:
    ilcplex/cplex.h: No such file or directory
    Is it not recognizing where cplex is on the comptuer?  Am I able to run a C program this way using cygwin?  I know I must be doing a stupid mistake, but I don't know where to find help on this.  I'd really appreciate some help.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Calling Cplex through C program

    Posted 06/19/08 07:14 PM

    Originally posted by: SystemAdmin


    [Didier Vidal said:]

    I have never tried to compile a CPLEX problem with gcc / cygwin - but at least, the error message you have shows that you should have indicated the directory for the CPLEX include files (something like  -I/cygdrive/c/ILOG/CPLEX110/include  depending on where you installed CPLEX...). man gcc for more info abiout the '-I' option.
    #CPLEXOptimizers
    #DecisionOptimization