QuadraticProgram.binary_var_list

QuadraticProgram.binary_var_list(keys, name=None, key_format='{}')[source]

Uses 'var_list' to construct a list of binary variables

প্যারামিটার:
  • name (str | None) -- The name(s) of the variable(s). If it's None or empty "", the default name, e.g., x0, is used.

  • key_format (str) -- The format used to name/index the variable(s).

  • keys (int | Sequence) -- If keys: int, it is interpreted as the number of variables to construct. Otherwise, the elements of the sequence are converted to strings via 'str' and substituted into key_format.

রিটার্নস:

A list of variable instances.

রেইজেস:
রিটার্ন টাইপ:

List[Variable]