Skip to content

Commit 3721d8c

Browse files
committed
added: call getinfo when debug logging is activated and not solved
1 parent eeccd9d commit 3721d8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controller/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ function optim_objective!(mpc::PredictiveController{NT}) where {NT<:Real}
524524
@warn("MPC termination status not OPTIMAL or LOCALLY_SOLVED: keeping "*
525525
"solution anyway", status)
526526
end
527-
@debug JuMP.solution_summary(optim, verbose=true)
527+
@debug getinfo(mpc)
528528
end
529529
if iserror(optim)
530530
mpc.ΔŨ .= ΔŨ0

src/estimator/mhe/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function optim_objective!(estim::MovingHorizonEstimator{NT}) where NT<:Real
411411
@warn("MHE termination status not OPTIMAL or LOCALLY_SOLVED: keeping "*
412412
"solution anyway", status)
413413
end
414-
@debug JuMP.solution_summary(optim, verbose=true)
414+
@debug getinfo(estim)
415415
end
416416
if iserror(optim)
417417
estim.Z̃ .= Z̃_0

0 commit comments

Comments
 (0)