Scippy

SCIP

Solving Constraint Integer Programs

heur_trivialnegation.c File Reference

Detailed Description

trivialnegation primal heuristic

Author
Jakob Witzig

Definition in file heur_trivialnegation.c.

#include <assert.h>
#include <string.h>
#include "scip/heur_trivialnegation.h"
#include "scip/pub_reopt.h"
#include "scip/struct_scip.h"

Go to the source code of this file.

Macros

#define HEUR_NAME   "trivialnegation"
 
#define HEUR_DESC   "negate solution entries if an objective coefficient changes the sign, enters or leaves the objective."
 
#define HEUR_DISPCHAR   'j'
 
#define HEUR_PRIORITY   40000
 
#define HEUR_FREQ   -1
 
#define HEUR_FREQOFS   0
 
#define HEUR_MAXDEPTH   0
 
#define HEUR_TIMING   SCIP_HEURTIMING_BEFORENODE
 
#define HEUR_USESSUBSCIP   FALSE
 

Functions

static SCIP_DECL_HEURCOPY (heurCopyTrivialnegation)
 
static SCIP_DECL_HEUREXEC (heurExecTrivialnegation)
 
SCIP_RETCODE SCIPincludeHeurTrivialnegation (SCIP *scip)
 

Macro Definition Documentation

#define HEUR_NAME   "trivialnegation"

Definition at line 30 of file heur_trivialnegation.c.

Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeHeurTrivialnegation().

#define HEUR_DESC   "negate solution entries if an objective coefficient changes the sign, enters or leaves the objective."

Definition at line 31 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_DISPCHAR   'j'

Definition at line 32 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_PRIORITY   40000

Definition at line 33 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_FREQ   -1

Definition at line 34 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_FREQOFS   0

Definition at line 35 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_MAXDEPTH   0

Definition at line 36 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_TIMING   SCIP_HEURTIMING_BEFORENODE

Definition at line 37 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

#define HEUR_USESSUBSCIP   FALSE

does the heuristic use a secondary SCIP instance?

Definition at line 38 of file heur_trivialnegation.c.

Referenced by SCIPincludeHeurTrivialnegation().

Function Documentation

static SCIP_DECL_HEURCOPY ( heurCopyTrivialnegation  )
static

copy method for primal heuristic plugins (called when SCIP copies plugins)

Definition at line 46 of file heur_trivialnegation.c.

References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurTrivialnegation().

SCIP_RETCODE SCIPincludeHeurTrivialnegation ( SCIP scip)

creates the trivialnegation primal heuristic and includes it in SCIP

Parameters
scipSCIP data structure

Definition at line 224 of file heur_trivialnegation.c.

References HEUR_DESC, HEUR_DISPCHAR, HEUR_FREQ, HEUR_FREQOFS, HEUR_MAXDEPTH, HEUR_NAME, HEUR_PRIORITY, HEUR_TIMING, HEUR_USESSUBSCIP, NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeHeurBasic(), and SCIPsetHeurCopy().

Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeDefaultPlugins().