Japanese
言語
English
Bengali
Japanese
Spanish



QuadraticProgram.continuous_var_dict

QuadraticProgram.continuous_var_dict(keys, lowerbound=0, upperbound=1e+20, name=None, key_format='{}')[ソース]

Uses 『var_dict』 to construct a dictionary of continuous variables

パラメータ:
  • lowerbound (float | int) – The lower bound of the variable(s).

  • upperbound (float | int) – The upper bound of the variable(s).

  • 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 dictionary mapping the variable names to variable instances.

例外:
戻り値の型:

Dict[str, Variable]