Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
MQConstr.fromlist()
fromlist ( qconstrlist )
Convert a list of quadratic constraints into an MQConstr
object. The shape
is inferred from the contents of the list - a list of QConstr
objects
produces a 1-D MQConstr
object, a list of lists of QConstr
objects
produces a 2-D MQConstr
, etc.
Arguments:
constrlist: A list of QConstr objects to populate the returned MQConstr.
Return value:
MQConstr object corresponding to the input constraints.
Example usage:
qconstrs = model.getQConstrs() mqc = MQConstr.fromlist(qconstrs) # 1-D MQConstr