QuadraticProgram.continuous_var

QuadraticProgram.continuous_var(lowerbound=0, upperbound=1e+20, name=None)[source]

Adds a continuous variable to the quadratic program.

প্যারামিটার:
  • lowerbound (float | int) -- The lowerbound of the variable.

  • upperbound (float | int) -- The upperbound of the variable.

  • name (str | None) -- The name of the variable. If it's None or empty "", the default name, e.g., x0, is used.

রিটার্নস:

The added variable.

রেইজেস:

QiskitOptimizationError -- if the variable name is already occupied.

রিটার্ন টাইপ:

Variable