Search code examples
c#cplexmixed-integer-programming

Print CPLEX current feasible solution every 60 seconds on C# (Concert technology)


I want to solve the MILP problem with CPLEX-C#. My question is that how can I get (print) the current feasible solution every 60 seconds. In other words, I am assigning the time limit of 5 minutes and I want to see the current feasible solution every minute.


Solution

  • You should have a look at the example MIPex4.cs in CPLEX_Studio201\cplex\examples\src\cs

    where you will see

    cplex.Use(new LogCallback(lp.NumVars, -100000, lastObjVal));