Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  some wonders about cplex callback by C language

    Posted 03/30/15 08:24 AM

    Originally posted by: jdpfreefly


    when I use C Programming Language to callback the cplex, everytime when I build this program, the final .exe document will printer below sentences. I don't know there are any error or setting I didn't do right. 

    Is anyone also encounter this situation?

    Thank you!

     

    My envirment is VS 2012, WIN 7 ultimate.

     

     

    Usage: D:\code_for_VC6.0\practice\20150329\test_0123\x64\Release\study_20150319.exe [-r] filename
      filename   Name of a file, with .mps, .lp, or .sav
                 extension, and a possible, additional .gz
                 extension
      -r         Indicates that callbacks will refer to the
                 presolved model
     
     
     

    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: some wonders about cplex callback by C language

    Posted 03/30/15 10:29 AM

    Well, there must be something in your code (not CPLEX) that prints out this text. You should check your source code and just remove this stuff. It looks like you copied stuff from one of the examples shipped with CPLEX and just copied some stuff that you did not intend to copy?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: some wonders about cplex callback by C language

    Posted 03/31/15 08:45 AM

    Originally posted by: jdpfreefly


    Maybe it isnot this cause, I copy this code to other envirment, it can run it, so I doubt there are other  wrong code or settings cause this error.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: some wonders about cplex callback by C language

    Posted 04/01/15 03:48 AM

    Originally posted by: jdpfreefly


    It's OK! I did it. I creat a new project, and add the path again, copy the code to the new project, then, succeed. HOPE this will help someone like me.

    Anyway, thanks to you, Danie.


    #CPLEXOptimizers
    #DecisionOptimization