Cookie Settings

Try our new documentation site (beta).

Filter Content By
Version
Table of contents
Filter by Language
C API Details
C++ API Details
GRBModel +
Java API Details
GRBModel +
.NET API Details
GRBModel +
Python API Details
Model +
Attributes
Parameters
Parameter Descriptions +


GRBLinExpr()

Linear expression constructor. Create an empty linear expression, or copy an existing expression.

GRBLinExpr GRBLinExpr ( )

    Create an empty linear expression.

    Return value:

    An empty expression object.

GRBLinExpr GRBLinExpr ( double a )

    Create a constant linear expression.

    Return value:

    A linear expression object.

GRBLinExpr GRBLinExpr ( GRBLinExpr orig )

    Copy an existing linear expression.

    Arguments:

    orig: Existing expression to copy.

    Return value:

    A copy of the input expression object.