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
SCIP_Bool SCIPsolIsOriginal ( SCIP_SOL sol)

returns whether the given solution is defined on original variables

Parameters
solprimal CIP solution
SCIP_Real SCIPsolGetOrigObj ( SCIP_SOL sol)

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

Parameters
solprimal CIP solution
SCIP_Real SCIPsolGetTime ( SCIP_SOL sol)

gets clock time, when this solution was found

Parameters
solprimal CIP solution
int SCIPsolGetRunnum ( SCIP_SOL sol)

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

Parameters
solprimal CIP solution
SCIP_Longint SCIPsolGetNodenum ( SCIP_SOL sol)

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

Parameters
solprimal CIP solution
int SCIPsolGetDepth ( SCIP_SOL sol)

gets node's depth, where this solution was found

Parameters
solprimal CIP solution
SCIP_HEUR* SCIPsolGetHeur ( SCIP_SOL sol)

gets heuristic, that found this solution (or NULL if it's from the tree)

Parameters
solprimal CIP solution
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)
int SCIPsolGetIndex ( SCIP_SOL sol)

returns unique index of given solution

Parameters
solprimal CIP solution