Skip to content

Commit 375ccdf

Browse files
committed
changed: new clearer warnings for Hessians in getinfo
1 parent 2a1cc13 commit 375ccdf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/controller/nonlinmpc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function addinfo!(info, mpc::NonLinMPC{NT}) where NT<:Real
593593
catch err
594594
if err isa MOI.GetAttributeNotAllowed{MOI.LagrangeMultiplier}
595595
@warn(
596-
"Retrieving optimal Hessian of the Lagrangian is not supported.\n"*
596+
"The optimizer does not support retrieving optimal Hessian of the Lagrangian.\n"*
597597
"Its nonzero coefficients will be random values.", maxlog=1
598598
)
599599
rand(sum(old_i_g))
@@ -635,7 +635,7 @@ function addinfo!(info, mpc::NonLinMPC{NT}) where NT<:Real
635635
catch err
636636
if err isa MOI.GetAttributeNotAllowed{MOI.LagrangeMultiplier}
637637
@warn(
638-
"Retrieving optimal Hessian of the Lagrangian is not supported.\n"*
638+
"The optimizer does not support retrieving optimal Hessian of the Lagrangian.\n"*
639639
"Its nonzero coefficients will be random values.", maxlog=1
640640
)
641641
rand(con.neq)

src/estimator/mhe/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function addinfo!(
224224
catch err
225225
if err isa MOI.GetAttributeNotAllowed{MOI.LagrangeMultiplier}
226226
@warn(
227-
"Retrieving optimal Hessian of the Lagrangian is not supported.\n"*
227+
"The optimizer does not support retrieving optimal Hessian of the Lagrangian.\n"*
228228
"Its nonzero coefficients will be random values.", maxlog=1
229229
)
230230
rand(sum(old_i_g))

0 commit comments

Comments
 (0)