SCIP-SDP  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
cons_savedsdpsettings.c File Reference

constraint handler for saving SDP settings More...

Go to the source code of this file.

Macros

#define CONSHDLR_NAME   "Savedsdpsettings"
 
#define CONSHDLR_DESC   "constraint handler to store SDP settings for each node"
 
#define CONSHDLR_ENFOPRIORITY   0
 
#define CONSHDLR_CHECKPRIORITY   0
 
#define CONSHDLR_EAGERFREQ   100
 
#define CONSHDLR_NEEDSCONS   TRUE
 

Functions

static SCIP_DECL_CONSDELETE (consDeleteSavedsdpsettings)
 
static SCIP_DECL_CONSENFOLP (consEnfolpSavedsdpsettings)
 
static SCIP_DECL_CONSENFOPS (consEnfopsSavedsdpsettings)
 
static SCIP_DECL_CONSCHECK (consCheckSavedsdpsettings)
 
static SCIP_DECL_CONSLOCK (consLockSavedsdpsettings)
 
static SCIP_DECL_CONSHDLRCOPY (conshdlrCopySavedsdpsettings)
 
static SCIP_DECL_CONSCOPY (consCopySavedsdpsettings)
 
SCIP_RETCODE SCIPincludeConshdlrSavedsdpsettings (SCIP *scip)
 
SCIP_RETCODE createConsSavedsdpsettings (SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_SDPSOLVERSETTING settings)
 
SCIP_SDPSOLVERSETTING SCIPconsSavedsdpsettingsGetSettings (SCIP *scip, SCIP_CONS *cons)
 

Detailed Description

constraint handler for saving SDP settings

Author
Tristan Gally

A constraint that is always feasible which can be used to save and recover settings used to solve the SDP-relaxation at the current node.

Definition in file cons_savedsdpsettings.c.

Macro Definition Documentation

#define CONSHDLR_NAME   "Savedsdpsettings"
#define CONSHDLR_DESC   "constraint handler to store SDP settings for each node"

Definition at line 50 of file cons_savedsdpsettings.c.

Referenced by SCIPincludeConshdlrSavedsdpsettings().

#define CONSHDLR_ENFOPRIORITY   0

priority of the constraint handler for constraint enforcing

Definition at line 51 of file cons_savedsdpsettings.c.

Referenced by SCIPincludeConshdlrSavedsdpsettings().

#define CONSHDLR_CHECKPRIORITY   0

priority of the constraint handler for checking feasibility

Definition at line 52 of file cons_savedsdpsettings.c.

Referenced by SCIPincludeConshdlrSavedsdpsettings().

#define CONSHDLR_EAGERFREQ   100

frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only

Definition at line 53 of file cons_savedsdpsettings.c.

Referenced by SCIPincludeConshdlrSavedsdpsettings().

#define CONSHDLR_NEEDSCONS   TRUE

should the constraint handler be skipped, if no constraints are available?

Definition at line 56 of file cons_savedsdpsettings.c.

Referenced by SCIPincludeConshdlrSavedsdpsettings().

Function Documentation

static SCIP_DECL_CONSDELETE ( consDeleteSavedsdpsettings  )
static

frees specific constraint data

Definition at line 66 of file cons_savedsdpsettings.c.

static SCIP_DECL_CONSENFOLP ( consEnfolpSavedsdpsettings  )
static

constraint enforcing method of constraint handler for LP solutions

Definition at line 84 of file cons_savedsdpsettings.c.

References CONSHDLR_NAME.

static SCIP_DECL_CONSENFOPS ( consEnfopsSavedsdpsettings  )
static

constraint enforcing method of constraint handler for pseudo solutions

Definition at line 100 of file cons_savedsdpsettings.c.

References CONSHDLR_NAME.

static SCIP_DECL_CONSCHECK ( consCheckSavedsdpsettings  )
static

feasibility check method of constraint handler for primal solutions

Definition at line 116 of file cons_savedsdpsettings.c.

References CONSHDLR_NAME.

static SCIP_DECL_CONSLOCK ( consLockSavedsdpsettings  )
static

variable rounding lock method of constraint handler

Definition at line 132 of file cons_savedsdpsettings.c.

References CONSHDLR_NAME.

static SCIP_DECL_CONSHDLRCOPY ( conshdlrCopySavedsdpsettings  )
static

copy method for constraint handler plugins (called when SCIP copies plugins)

Definition at line 145 of file cons_savedsdpsettings.c.

References CONSHDLR_NAME, and SCIPincludeConshdlrSavedsdpsettings().

static SCIP_DECL_CONSCOPY ( consCopySavedsdpsettings  )
static

constraint copying method of constraint handler

Definition at line 163 of file cons_savedsdpsettings.c.

SCIP_RETCODE SCIPincludeConshdlrSavedsdpsettings ( SCIP *  scip)

include store bool constraint handler

Parameters
scipSCIP data structure

Definition at line 172 of file cons_savedsdpsettings.c.

References CONSHDLR_CHECKPRIORITY, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, and CONSHDLR_NEEDSCONS.

Referenced by runSCIP(), and SCIP_DECL_CONSHDLRCOPY().

SCIP_RETCODE createConsSavedsdpsettings ( SCIP *  scip,
SCIP_CONS **  cons,
const char *  name,
SCIP_SDPSOLVERSETTING  settings 
)

create a savedsdpsettings constraint, i.e. save the current settings for the SDP-relaxation of this node

Parameters
scipSCIP data structure
conspointer to hold the created constraint
namename of constraint
settingssettings to save

Definition at line 200 of file cons_savedsdpsettings.c.

Referenced by calcRelax().

SCIP_SDPSOLVERSETTING SCIPconsSavedsdpsettingsGetSettings ( SCIP *  scip,
SCIP_CONS *  cons 
)

get the settings used to solve the SDP relaxation in this node

Parameters
scipSCIP data structure
consconstraint to get starting point for

Definition at line 235 of file cons_savedsdpsettings.c.

Referenced by calcRelax().