Quadratic expression constructor. Create an empty quadratic expression, or copy an existing expression.

GRBQuadExpr GRBQuadExpr ( )

    Create an empty quadratic expression.

    Return value:

    An empty expression object.

GRBQuadExpr GRBQuadExpr ( GRBLinExpr orig )

    Initialize a quadratic expression from an existing linear expression.


    orig: Existing linear expression to copy.

    Return value:

    Quadratic expression object whose initial value is taken from the input linear expression.

GRBQuadExpr GRBQuadExpr ( GRBQuadExpr orig )

    Copy an existing quadratic expression.


    orig: Existing expression to copy.

    Return value:

    A copy of the input expression object.