All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
heur_trysol.c
Go to the documentation of this file.
20 * This heuristic takes a solution from somewhere else via the function SCIPheurPassSolTrySol(). It
21 * then tries to commit this solution. It is mainly used by cons_indicator, which tries to correct a
22 * given solution, but cannot directly submit this solution, because it is a constraint handler and
26 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
41 #define HEUR_TIMING SCIP_HEURTIMING_DURINGLPLOOP | SCIP_HEURTIMING_BEFOREPRESOL | SCIP_HEURTIMING_BEFORENODE
54 SCIP_SOL* addsol; /**< storing solution passed to heuristic which can be added without checking (NULL if none) */
256 if( heurdata->trysol == NULL || SCIPisLT(scip, SCIPgetSolOrigObj(scip, sol), SCIPgetSolOrigObj(scip, heurdata->trysol)) )
295 if( heurdata->addsol == NULL || SCIPisLT(scip, SCIPgetSolOrigObj(scip, sol), SCIPgetSolOrigObj(scip, heurdata->addsol)) )
|