Originally posted by: ORA17
Hello Experts,
I have implemented two separate Incumbent callbacks in .NET concert to support a very complex constraint:
internal class MyCallback1 : Cplex.IncumbentCallback
{
}
internal class MyCallback2 : Cplex.IncumbentCallback
{
}
Then I called both in the following way :
Cplex model = new Cplex();
mode.Use(new MyCallback1(arg1, arg2));
mode.Use(new MyCallback2(arg3, arg4));
But problem is that during solve cplex only caling latest added callback i.e. MyCallback2. How can I make Cplex to call both callbacks?
Also is it possible to call one callbacks i.e. MyCallback1 multiple times with different arguments?
Thanks in advance!
#CPLEXOptimizers#DecisionOptimization