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