Hi,
I am trying to do a more advanced monitoring of relative gap in the solver, to terminate when the gap is small and we have a slow evolution of the gap.
Doing so in a CpSolverSolutionCallback works just fine, since we have full access to the solver parameters.
However, since I have more frequent updates of bound, i wish to implement the same logic in the bound callback.
This is where I have problems trying to access the `solver.objectiveValue()`.
A reference to 'solver' has been passed to the class managing the callback (which is a plain Consumer<Double> in java), but calling objectiveValue() generates error:
`Cannot invoke "com.google.ortools.sat.CpSolverResponse.getObjectiveValue()" because "this.solveResponse" is null`.
I am sure the solution is obvious to many of you, but I have had some frustrating days trying to progress this - any hints are highly appreciated.
Is there a way to access the objective from a bounds callback?
Cheers,
Patrik