operator*

Overloaded operator on expression objects.

GRBLinExpr operator* ( GRBVar x,
    double a )
    Multiply a variable and a constant.

    Arguments:

    x: Variable.

    a: Constant multiplier.

    Return value:

    Expression that represents the result of multiplying the variable by a constant.

GRBLinExpr operator* ( double a,
    GRBVar x )
    Multiply a variable and a constant.

    Arguments:

    a: Constant multiplier.

    x: Variable.

    Return value:

    Expression that represents the result of multiplying the variable by a constant.

GRBLinExpr operator* ( const GRBLinExpr& expr,
    double a )
    Multiply an expression and a constant.

    Arguments:

    expr: Expression.

    a: Constant multiplier.

    Return value:

    Expression that represents the result of multiplying the expression by a constant.

GRBLinExpr operator* ( double a,
    const GRBLinExpr& expr )
    Multiply an expression and a constant.

    Arguments:

    a: Constant multiplier.

    expr: Expression.

    Return value:

    Expression that represents the result of multiplying the expression by a constant.

GRBQuadExpr operator* ( const GRBQuadExpr& expr,
    double a )
    Multiply an expression and a constant.

    Arguments:

    expr: Expression.

    a: Constant multiplier.

    Return value:

    Expression that represents the result of multiplying the expression by a constant.

GRBQuadExpr operator* ( double a,
    const GRBQuadExpr& expr )
    Multiply an expression and a constant.

    Arguments:

    a: Constant multiplier.

    expr: Expression.

    Return value:

    Expression that represents the result of multiplying the expression by a constant.

GRBQuadExpr operator* ( GRBVar x,
    GRBVar y )
    Multiply a pair of variables.

    Arguments:

    x: First variable.

    y: Second variable.

    Return value:

    Expression that represents the result of multiplying the argument variables.

GRBQuadExpr operator* ( GRBVar var,
    const GRBLinExpr& expr )
    Multiply an expression and a variable.

    Arguments:

    var: Variable.

    expr: Expression.

    Return value:

    Expression that represents the result of multiplying the expression by a variable.

GRBQuadExpr operator* ( const GRBLinExpr& expr,
    GRBVar var )
    Multiply an expression and a variable.

    Arguments:

    var: Variable.

    expr: Expression.

    Return value:

    Expression that represents the result of multiplying the expression by a variable.

GRBQuadExpr operator* ( const GRBLinExpr& expr1,
    const GRBLinExpr& expr2 )
    Multiply a pair of expressions.

    Arguments:

    expr1: First expression.

    expr2: Second expression.

    Return value:

    Expression that represents the result of multiplying the argument expressions.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search