Detailed Description
internal miscellaneous methods for nonlinear constraints
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()
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
-
scip SCIP data structure cons constraint for which right-hand side is queried success pointer 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()
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
-
scip SCIP data structure cons constraint to get left-hand side for success pointer 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
-
scip SCIP data structure cons constraint for which row is queried var variable of the constraint entry val the 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().