Skip to content

Commit b60bc6e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 966a8ab commit b60bc6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: linear_programming/dual_simplex.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
prob = LpProblem("Dual_Simplex_Example", LpMaximize)
66

77
# Create decision variables for the dual problem
8-
y1 = LpVariable('y1', lowBound=0) # y1 >= 0
9-
y2 = LpVariable('y2', lowBound=0) # y2 >= 0
10-
y3 = LpVariable('y3', lowBound=0) # y3 >= 0
8+
y1 = LpVariable("y1", lowBound=0) # y1 >= 0
9+
y2 = LpVariable("y2", lowBound=0) # y2 >= 0
10+
y3 = LpVariable("y3", lowBound=0) # y3 >= 0
1111

1212
# Objective function (minimization in dual corresponds to maximization here)
1313
prob += 4 * y1 + 2 * y2 + 3 * y3, "Objective"
@@ -29,4 +29,3 @@
2929

3030
# Print the objective value (minimized value)
3131
print(f"Optimal objective value: {value(prob.objective)}")
32-

0 commit comments

Comments
 (0)