Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
norm()
norm ( vars, which )
Used to set a decision variable equal to the norm of other decision variables.
Arguments:
vars (list of Var, or tupledict of Var values, or 1-dim MVar): The variables over which the NORM will be taken. Note that this may not contain duplicates.
which (float): Which norm to use. Options are 0, 1, 2, and any value greater than or equal to GRB.INFINITY.
Example usage:
x = m.addVars(3) nx = m.addVar() m.addConstr(nx == norm(x, 1.0))
Return value:
Returns a GenExpr object.