Scippy

SCIP

Solving Constraint Integer Programs

pub_sol.h File Reference

Detailed Description

public methods for primal CIP solutions

Author
Tobias Achterberg
Timo Berthold

Definition in file pub_sol.h.

#include "scip/def.h"
#include "scip/type_sol.h"
#include "scip/type_heur.h"

Go to the source code of this file.

Functions

SCIP_SOLORIGIN SCIPsolGetOrigin (SCIP_SOL *sol)
 
SCIP_Bool SCIPsolIsOriginal (SCIP_SOL *sol)
 
SCIP_Real SCIPsolGetOrigObj (SCIP_SOL *sol)
 
SCIP_Real SCIPsolGetTime (SCIP_SOL *sol)
 
int SCIPsolGetRunnum (SCIP_SOL *sol)
 
SCIP_Longint SCIPsolGetNodenum (SCIP_SOL *sol)
 
int SCIPsolGetDepth (SCIP_SOL *sol)
 
SCIP_HEURSCIPsolGetHeur (SCIP_SOL *sol)
 
void SCIPsolSetHeur (SCIP_SOL *sol, SCIP_HEUR *heur)
 
int SCIPsolGetIndex (SCIP_SOL *sol)
 

Function Documentation

SCIP_SOLORIGIN SCIPsolGetOrigin ( SCIP_SOL sol)

gets origin of solution

Parameters
solprimal CIP solution

Definition at line 2108 of file sol.c.

References NULL, and SCIP_Sol::solorigin.

Referenced by SCIPprimalAddOrigObjoffset(), SCIPprimalRetransformSolutions(), and SCIPretransformSol().

SCIP_Real SCIPsolGetOrigObj ( SCIP_SOL sol)

gets objective value of primal CIP solution which lives in the original problem space

Parameters
solprimal CIP solution

Definition at line 2128 of file sol.c.

References NULL, SCIP_Sol::obj, and SCIPsolIsOriginal().

Referenced by copyAndSolveComponent(), primalAddOrigSol(), primalExistsOrigSol(), primalSearchOrigSolPos(), SCIPgetSolOrigObj(), SCIPprimalAddOrigObjoffset(), SCIPprimalTransformSol(), SCIPprintSol(), and storeSolution().

SCIP_Real SCIPsolGetTime ( SCIP_SOL sol)

gets clock time, when this solution was found

Parameters
solprimal CIP solution

Definition at line 2151 of file sol.c.

References NULL, and SCIP_Sol::time.

Referenced by primalAddSol(), printSolutionStatistics(), and SCIPgetSolTime().

int SCIPsolGetRunnum ( SCIP_SOL sol)

gets branch and bound run number, where this solution was found

Parameters
solprimal CIP solution

Definition at line 2161 of file sol.c.

References NULL, and SCIP_Sol::runnum.

Referenced by primalAddSol(), printSolutionStatistics(), and SCIPgetSolRunnum().

SCIP_Longint SCIPsolGetNodenum ( SCIP_SOL sol)

gets node number of the specific branch and bound run, where this solution was found

gets node number, where this solution was found

Parameters
solprimal CIP solution

Definition at line 2171 of file sol.c.

References SCIP_Sol::nodenum, and NULL.

Referenced by primalAddSol(), printSolutionStatistics(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPgetSolNodenum(), setupSubproblem(), and solHasNewSource().

int SCIPsolGetDepth ( SCIP_SOL sol)

gets node's depth, where this solution was found

Parameters
solprimal CIP solution

Definition at line 2181 of file sol.c.

References SCIP_Sol::depth, and NULL.

Referenced by primalAddSol(), and printSolutionStatistics().

SCIP_HEUR* SCIPsolGetHeur ( SCIP_SOL sol)
void SCIPsolSetHeur ( SCIP_SOL sol,
SCIP_HEUR heur 
)

informs the solution that it now belongs to the given primal heuristic

Parameters
solprimal CIP solution
heurheuristic that found the solution (or NULL if it's from the tree)

Definition at line 2232 of file sol.c.

References SCIP_Sol::heur, and NULL.

Referenced by primalLinkCurrentSol(), SCIP_DECL_HEUREXEC(), SCIPheurPassSolAddSol(), and SCIPheurPassSolTrySol().

int SCIPsolGetIndex ( SCIP_SOL sol)

returns unique index of given solution

Parameters
solprimal CIP solution

Definition at line 2222 of file sol.c.

References SCIP_Sol::index, and NULL.

Referenced by createNewSol(), SCIP_DECL_HEUREXEC(), and SCIPapplyProximity().