Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Using Callback functionality on Windows platform

    Posted 04/01/09 08:39 PM

    Originally posted by: SystemAdmin


    [losnit said:]

    I use CPLEX in a C callable library mode.  Years ago when we started on the unix platform we used a shared memory process to allow the operator interrupt with the callback functions.  When we moved to a windows platform it was not obvious how to implement that same functionality and it was disabled.  Is there a resource someone can point out that would give me an idea how to do this operator interrupt/callback function on Windows?
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Using Callback functionality on Windows platform

    Posted 04/03/09 02:05 AM

    Originally posted by: SystemAdmin


    [EdKlotz said:]

    I use CPLEX in a C callable library mode.  Years ago when we started on the unix platform we used a shared memory process to allow the operator interrupt with the callback functions.  When we moved to a windows platform it was not obvious how to implement that same functionality and it was disabled.  Is there a resource someone can point out that would give me an idea how to do this operator interrupt/callback function on Windows?

    The signal() function is available in Windows, so I would think you could use that in an interrupt
    handler; interactive CPLEX in Windows essentially does that when you interrupt the optimization with Ctrl-C.  Also, CPLEX 11 and later provide a CPXsetterminate routine designed to facilitate writing an
    interrupt handler.  Take a look at the mipex4.c example that comes with your CPLEX distribution for
    an illustration of the usage of that function.

    #CPLEXOptimizers
    #DecisionOptimization