Cookie Settings

Try our new documentation site (beta).

Filter Content By
Version
Table of contents
Filter by Language
C API Details
C++ API Details
GRBModel +
Java API Details
GRBModel +
.NET API Details
GRBModel +
Python API Details
Model +
Attributes
Parameters
Parameter Descriptions +


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).