Skip to content

Commit

Permalink
black formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertLee125 committed Aug 16, 2024
1 parent 6f33c52 commit 5e6b0b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gdplib/toy_problem/david_linan.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def infeasR_rule(m):

if __name__ == "__main__":
m = build_model()
pyo.TransformationFactory('gdp.bigm').apply_to(m)
solver = pyo.SolverFactory('gams')
solver.solve(m, solver='baron', tee=True)
pyo.TransformationFactory("gdp.bigm").apply_to(m)
solver = pyo.SolverFactory("gams")
solver.solve(m, solver="baron", tee=True)
print("Solution: alpha=", pyo.value(m.alpha), " beta=", pyo.value(m.beta))
print("Objective function value: ", pyo.value(m.obj))

0 comments on commit 5e6b0b3

Please sign in to comment.