Documentation

GRBCallback::useSolution()


GRBCallback::useSolution()

Once you have imported solution values using setSolution, you can optionally call useSolution to immediately use these values to try to compute a heuristic solution.

double useSolution ( )

    Return value:

    The objective value for the solution obtained from your solution values (or GRB_INFINITY if no improved solution is found).