Scippy

SCIP

Solving Constraint Integer Programs

pub_misc_nonlinear.h File Reference

Detailed Description

internal miscellaneous methods for nonlinear constraints

Author
Stephen J. Maher

Definition in file pub_misc_nonlinear.h.

#include "scip/def.h"
#include "scip/type_retcode.h"
#include "scip/type_cons.h"
#include "scip/type_var.h"

Go to the source code of this file.

Functions

SCIP_Real SCIPconsNonlinearGetRhs (SCIP *scip, SCIP_CONS *cons, SCIP_Bool *success)
 
SCIP_Real SCIPconsNonlinearGetLhs (SCIP *scip, SCIP_CONS *cons, SCIP_Bool *success)
 
SCIP_RETCODE SCIPconsNonlinearAddLinearCoef (SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_Real val)
 

Function Documentation

◆ SCIPconsNonlinearGetRhs()

SCIP_Real SCIPconsNonlinearGetRhs ( SCIP scip,
SCIP_CONS cons,
SCIP_Bool success 
)

returns the right-hand side of an arbitrary SCIP constraint that can be represented as a single nonlinear constraint

Note
The success pointer indicates if the individual contraint handler was able to return the involved values
Parameters
scipSCIP data structure
consconstraint for which right-hand side is queried
successpointer to store whether a valid right-hand side was returned

Definition at line 36 of file misc_nonlinear.c.

References FALSE, NULL, SCIP_INVALID, SCIP_Real, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPgetRhsAbspower(), SCIPgetRhsNonlinear(), SCIPgetRhsQuadratic(), SCIPwarningMessage(), and TRUE.

Referenced by addSlackVars().

◆ SCIPconsNonlinearGetLhs()

SCIP_Real SCIPconsNonlinearGetLhs ( SCIP scip,
SCIP_CONS cons,
SCIP_Bool success 
)

returns the left-hand side of an arbitrary SCIP constraint that can be represented as a single nonlinear constraint

Note
The success pointer indicates if the individual contraint handler was able to return the involved values
Parameters
scipSCIP data structure
consconstraint to get left-hand side for
successpointer to store whether a valid left-hand side was returned

Definition at line 82 of file misc_nonlinear.c.

References FALSE, NULL, SCIP_INVALID, SCIP_Real, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPgetLhsAbspower(), SCIPgetLhsNonlinear(), SCIPgetLhsQuadratic(), SCIPwarningMessage(), and TRUE.

Referenced by addSlackVars().

◆ SCIPconsNonlinearAddLinearCoef()

SCIP_RETCODE SCIPconsNonlinearAddLinearCoef ( SCIP scip,
SCIP_CONS cons,
SCIP_VAR var,
SCIP_Real  val 
)

adds the given variable to the input constraint.

Parameters
scipSCIP data structure
consconstraint for which row is queried
varvariable of the constraint entry
valthe coefficient of the constraint entry

Definition at line 125 of file misc_nonlinear.c.

References NULL, SCIP_CALL, SCIP_ERROR, SCIP_OKAY, SCIPaddLinearVarNonlinear(), SCIPaddLinearVarQuadratic(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage.

Referenced by addSlackVars().