Skip to content

Commit

Permalink
fstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
whoburg committed Jan 8, 2024
1 parent d51fa23 commit 096d607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/examples/x_greaterthan_1.py
Expand Up @@ -17,5 +17,5 @@
sol = m.solve(verbosity=0)

# print selected results
print("Optimal cost: %.4g" % sol["cost"])
print("Optimal x val: %.4g" % sol["variables"][x])
print(f"Optimal cost: {sol['cost']:.4g}")
print(f"Optimal x val: {sol['variables'][x]:.4g}")

0 comments on commit 096d607

Please sign in to comment.