Scippy

SCIP

Solving Constraint Integer Programs

relax_nlp.c File Reference

Detailed Description

nlp relaxator

Author
Benjamin Mueller

Definition in file relax_nlp.c.

#include <assert.h>
#include "relax_nlp.h"
#include "scip/scip_nlpi.h"

Go to the source code of this file.

Macros

#define RELAX_NAME   "nlp"
 
#define RELAX_DESC   "relaxator solving a convex NLP relaxation"
 
#define RELAX_PRIORITY   10
 
#define RELAX_FREQ   1
 
#define NLPITERLIMIT   500
 
#define FEASTOLFAC   0.01
 
#define RELOBJTOLFAC   0.01
 

Functions

static SCIP_DECL_RELAXINITSOL (relaxInitsolNlp)
 
static SCIP_DECL_RELAXEXITSOL (relaxExitsolNlp)
 
static SCIP_DECL_RELAXEXEC (relaxExecNlp)
 
SCIP_RETCODE SCIPincludeRelaxNlp (SCIP *scip)
 

Macro Definition Documentation

◆ RELAX_NAME

#define RELAX_NAME   "nlp"

Definition at line 38 of file relax_nlp.c.

Referenced by SCIPincludeRelaxNlp().

◆ RELAX_DESC

#define RELAX_DESC   "relaxator solving a convex NLP relaxation"

Definition at line 39 of file relax_nlp.c.

Referenced by SCIPincludeRelaxNlp().

◆ RELAX_PRIORITY

#define RELAX_PRIORITY   10

Definition at line 40 of file relax_nlp.c.

Referenced by SCIPincludeRelaxNlp().

◆ RELAX_FREQ

#define RELAX_FREQ   1

Definition at line 41 of file relax_nlp.c.

Referenced by SCIPincludeRelaxNlp().

◆ NLPITERLIMIT

#define NLPITERLIMIT   500

iteration limit of NLP solver

Definition at line 43 of file relax_nlp.c.

Referenced by SCIP_DECL_RELAXEXEC().

◆ FEASTOLFAC

#define FEASTOLFAC   0.01

factor for NLP feasibility tolerance

Definition at line 44 of file relax_nlp.c.

Referenced by SCIP_DECL_RELAXEXEC().

◆ RELOBJTOLFAC

#define RELOBJTOLFAC   0.01

factor for NLP relative objective tolerance

Definition at line 45 of file relax_nlp.c.

Referenced by SCIP_DECL_RELAXEXEC().

Function Documentation

◆ SCIP_DECL_RELAXINITSOL()

static SCIP_DECL_RELAXINITSOL ( relaxInitsolNlp  )
static

solving process initialization method of relaxator (called when branch and bound process is about to begin)

Definition at line 64 of file relax_nlp.c.

References SCIP_OKAY.

◆ SCIP_DECL_RELAXEXITSOL()

static SCIP_DECL_RELAXEXITSOL ( relaxExitsolNlp  )
static

solving process deinitialization method of relaxator (called before branch and bound process data is freed)

Definition at line 72 of file relax_nlp.c.

References SCIP_OKAY.

◆ SCIP_DECL_RELAXEXEC()

◆ SCIPincludeRelaxNlp()

SCIP_RETCODE SCIPincludeRelaxNlp ( SCIP scip)

creates the nlp relaxator and includes it in SCIP

Parameters
scipSCIP data structure

Definition at line 174 of file relax_nlp.c.

References NULL, RELAX_DESC, RELAX_FREQ, RELAX_NAME, RELAX_PRIORITY, SCIP_CALL, SCIP_OKAY, SCIPincludeRelaxBasic(), SCIPsetRelaxExitsol(), and SCIPsetRelaxInitsol().

Referenced by runShell().