Documentation

LinExpr.add()


LinExpr.add()

add ( expr, mult=1.0 )

Add one linear expression into another. Upon completion, the invoking linear expression will be equal to the sum of itself and the argument expression.

Arguments:

expr: Linear expression to add.

mult (optional): Multiplier for argument expression.

Example usage:

  e1 = x + y
  e1.add(z, 3.0)