Scippy

SCIP

Solving Constraint Integer Programs

vbc.h File Reference

Detailed Description

methods for VBC Tool output

Author
Tobias Achterberg

Definition in file vbc.h.

#include "scip/def.h"
#include "scip/type_set.h"
#include "scip/type_stat.h"
#include "scip/type_tree.h"
#include "scip/type_vbc.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPvbcCreate (SCIP_VBC **vbc, SCIP_MESSAGEHDLR *messagehdlr)
 
void SCIPvbcFree (SCIP_VBC **vbc)
 
SCIP_RETCODE SCIPvbcInit (SCIP_VBC *vbc, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
void SCIPvbcExit (SCIP_VBC *vbc, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr)
 
SCIP_RETCODE SCIPvbcNewChild (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
SCIP_RETCODE SCIPvbcUpdateChild (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcSolvedNode (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcCutoffNode (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcFoundConflict (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcMarkedRepropagateNode (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcRepropagatedNode (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcFoundSolution (SCIP_VBC *vbc, SCIP_SET *set, SCIP_STAT *stat, SCIP_NODE *node)
 
void SCIPvbcLowerbound (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_Real lowerbound)
 
void SCIPvbcUpperbound (SCIP_VBC *vbc, SCIP_STAT *stat, SCIP_Real upperbound)
 

Function Documentation

SCIP_RETCODE SCIPvbcCreate ( SCIP_VBC **  vbc,
SCIP_MESSAGEHDLR messagehdlr 
)

creates VBCTool data structure

creates VBC Tool data structure

Parameters
vbcpointer to store the VBC information
messagehdlrmessage handler

Definition at line 65 of file vbc.c.

References BMSallocMemory, FALSE, SCIP_Vbc::messagehdlr, NULL, SCIP_ALLOC, SCIP_OKAY, and SCIP_VBCCOLOR_NONE.

Referenced by SCIPstatCreate().

void SCIPvbcFree ( SCIP_VBC **  vbc)

frees VBC Tool data structure

Parameters
vbcpointer to store the VBC information

Definition at line 84 of file vbc.c.

References BMSfreeMemory, and NULL.

Referenced by SCIPstatFree().

SCIP_RETCODE SCIPvbcInit ( SCIP_VBC vbc,
BMS_BLKMEM blkmem,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)

initializes VBC information and creates a file for VBC output

Parameters
vbcVBC information
blkmemblock memory
setglobal SCIP settings
messagehdlrmessage handler

Definition at line 97 of file vbc.c.

References SCIP_Vbc::file, SCIP_Vbc::lastcolor, SCIP_Vbc::lastnode, SCIP_Vbc::messagehdlr, SCIP_Vbc::nodenum, NULL, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_HASHSIZE_VBC, SCIP_OKAY, SCIP_VBCCOLOR_NONE, SCIP_VERBLEVEL_NORMAL, SCIPerrorMessage, SCIPhashmapCreate(), SCIPmessageFPrintInfo(), SCIPmessagePrintVerbInfo(), SCIPprintSysError(), SCIP_Vbc::timestep, and SCIP_Vbc::userealtime.

Referenced by initSolve().

void SCIPvbcExit ( SCIP_VBC vbc,
SCIP_SET set,
SCIP_MESSAGEHDLR messagehdlr 
)

closes the VBC output file

Parameters
vbcVBC information
setglobal SCIP settings
messagehdlrmessage handler

Definition at line 138 of file vbc.c.

References SCIP_Vbc::file, SCIP_Vbc::nodenum, NULL, SCIP_VERBLEVEL_FULL, SCIPhashmapFree(), and SCIPmessagePrintVerbInfo().

Referenced by freeSolve().

SCIP_RETCODE SCIPvbcUpdateChild ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_NODE node 
)
void SCIPvbcSolvedNode ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_NODE node 
)
void SCIPvbcCutoffNode ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_NODE node 
)
void SCIPvbcFoundConflict ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_NODE node 
)

changes the color of the node to the color of nodes where a conflict constraint was found

Parameters
vbcVBC information
statproblem statistics
nodenode, where the conflict was found

Definition at line 430 of file vbc.c.

References NULL, SCIP_NODETYPE_PROBINGNODE, SCIP_VBCCOLOR_CONFLICT, SCIPnodeGetType(), and vbcSetColor().

Referenced by SCIPconflictFlushConss().

void SCIPvbcMarkedRepropagateNode ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_NODE node 
)

changes the color of the node to the color of nodes that were marked to be repropagated

Parameters
vbcVBC information
statproblem statistics
nodenode, that was marked to be repropagated

Definition at line 446 of file vbc.c.

References NULL, SCIP_NODETYPE_PROBINGNODE, SCIP_VBCCOLOR_MARKREPROP, SCIPnodeGetNumber(), SCIPnodeGetType(), and vbcSetColor().

Referenced by SCIPnodePropagateAgain().

void SCIPvbcRepropagatedNode ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_NODE node 
)

changes the color of the node to the color of repropagated nodes

Parameters
vbcVBC information
statproblem statistics
nodenode, that was repropagated

Definition at line 465 of file vbc.c.

References NULL, SCIP_NODETYPE_PROBINGNODE, SCIP_VBCCOLOR_REPROP, SCIPnodeGetType(), and vbcSetColor().

Referenced by nodeRepropagate().

void SCIPvbcFoundSolution ( SCIP_VBC vbc,
SCIP_SET set,
SCIP_STAT stat,
SCIP_NODE node 
)

changes the color of the node to the color of nodes with a primal solution

Parameters
vbcVBC information
setglobal SCIP settings
statproblem statistics
nodenode where the solution was found, or NULL

Definition at line 481 of file vbc.c.

References NULL, SCIP_NODETYPE_PROBINGNODE, SCIP_VBCCOLOR_SOLUTION, SCIPnodeGetType(), and vbcSetColor().

Referenced by primalAddSol().

void SCIPvbcLowerbound ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_Real  lowerbound 
)

outputs a new global lower bound to the VBC output file

Parameters
vbcVBC information
statproblem statistics
lowerboundnew lower bound

Definition at line 499 of file vbc.c.

References SCIP_Vbc::file, SCIP_Vbc::messagehdlr, NULL, printTime(), and SCIPmessageFPrintInfo().

void SCIPvbcUpperbound ( SCIP_VBC vbc,
SCIP_STAT stat,
SCIP_Real  upperbound 
)

outputs a new global upper bound to the VBC output file

Parameters
vbcVBC information
statproblem statistics
upperboundnew upper bound

Definition at line 516 of file vbc.c.

References SCIP_Vbc::file, SCIP_Vbc::messagehdlr, NULL, printTime(), and SCIPmessageFPrintInfo().

Referenced by primalSetUpperbound().