Skip to content

Commit 42a3aef

Browse files
committed
Replaces print("") call with flush(stdout)
1 parent 9fdeaf1 commit 42a3aef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/transcription/ipopt.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ function solve_with_ipopt(problem::Problem, robot::Robot;
274274

275275
function intermediate(alg_mod::Cint, iter_count::Cint, obj_value::Float64, inf_pr::Float64, inf_du::Float64, mu::Float64,
276276
d_norm::Float64, regularization_size::Float64, alpha_du::Float64, alpha_pr::Float64, ls_trials::Cint,)
277-
print("") # Flush the output to the Jupyter notebook cell
277+
# Flush the output to the Jupyter notebook cell. Without it,
278+
# the output will only show up after the solver has terminated.
279+
flush(stdout)
278280

279281
update!(solver_log, abs_feas_error=inf_pr, obj_value=obj_value)
280282

0 commit comments

Comments
 (0)