Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 5, 2024
1 parent be3a775 commit e403553
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Constraints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Examples:
variables.add_continuous_variable("e", -2, 2, 0.25, "", "")
constraint.add_constraint("~a = b", True, True, False)
constraint.add_constraint("a | b = c", True, True, False)
constraint.add_constraint("d + e <= 1", True, True, False)
constraint.add_constraint("d + e <= 1", True, True, False)
2 changes: 1 addition & 1 deletion docs/ObjectiveFunction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ The class provides methods to declare variables:
b0 = variables.add_discrete_variable("b", [-1, 1, 3])
c0 = variables.add_continuous_variable("c", -2, 2, 0.25, "", "")
objective_function = ObjectiveFunction()
objective_function.add_objective_function(a0 + b0 * c0 + c0**2)
objective_function.add_objective_function(a0 + b0 * c0 + c0**2)
2 changes: 1 addition & 1 deletion docs/Problem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ and a method for obtaining the HUBO or PUBO formulation of the problem as qubove
objective_function.add_objective_function(a0 + b0 * c0 + c0**2)
problem = Problem()
problem.create_problem(variables, constraint, objective_function)
pubo = problem.write_the_final_cost_function(lambda_strategy)
pubo = problem.write_the_final_cost_function(lambda_strategy)
1 change: 0 additions & 1 deletion docs/Solver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ The class provides for exploiting the solver:
- *sequential penalty increase*
- *scaled sequential penalty increase*
- *binary search penalty algorithm*

0 comments on commit e403553

Please sign in to comment.