Is there a function that can compare two SCIP_SOLs and determine whether one SCIP_SOL is more optimal than the other?
I am hoping to use this in a branching rule using the solutions in the solution pool.
Is there a function that can compare two SCIP_SOLs and determine whether one SCIP_SOL is more optimal than the other?
I am hoping to use this in a branching rule using the solutions in the solution pool.
To get the objective value of a solution you need to call SCIPgetSolOrigObj()
. SCIP will automatically store the best found solution - call SCIPgetBestSol()
to get it.
There is no such thing as a "more optimal" solution. If you want to compare solutions based on something other than their objective values you need to implement that metric yourself.