Skip to content

Commit

Permalink
print format
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Mar 5, 2024
1 parent a9bfcd4 commit 8dd8b72
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/call_highs_from_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ def user_interrupt_callback(
# Various other callback types
if callback_type == hscb.HighsCallbackType.kCallbackLogging:
if dev_run:
print(f"userInterruptCallback(type {
callback_type}): {message}")
print(f"userInterruptCallback(type {callback_type}): {message}")

elif callback_type == hscb.HighsCallbackType.kCallbackSimplexInterrupt:
if dev_run:
print(f"userInterruptCallback(type {
callback_type}): {message}")
print(f"with iteration count = {
data_out.simplex_iteration_count}")
print(f"userInterruptCallback(type {callback_type}): {message}")
print("with iteration count = ",
data_out.simplex_iteration_count)

data_in.user_interrupt = (
data_out.simplex_iteration_count > SIMPLEX_ITERATION_LIMIT
Expand Down

0 comments on commit 8dd8b72

Please sign in to comment.