Skip to content

Commit c53b864

Browse files
committed
added: hide non-unicode keys in info2debugstr
1 parent 3b14da7 commit c53b864

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/general.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ const ALL_COLORING_ORDERS = (
1616
RandomOrder(StableRNG(0), 0)
1717
)
1818

19+
const HIDDEN_GETINFO_KEYS_MHE = (
20+
:What, :xhatarr, :epsilon, :Xhat, :xhat, :Vhat, :Pbar, :xbar, :Yhat, :Yhatm
21+
)
22+
23+
const HIDDEN_GETINFO_KEYS_MPC = (
24+
:DeltaU, :epsilon, :Dhat, :yhat, :Yhat, :xhatend, :Yhats, :Rhaty, :Rhatu
25+
)
26+
1927
"Termination status that means 'no solution available'."
2028
const ERROR_STATUSES = (
2129
JuMP.INFEASIBLE, JuMP.DUAL_INFEASIBLE, JuMP.LOCALLY_INFEASIBLE,
@@ -40,6 +48,10 @@ function info2debugstr(info)
4048
mystr = "Content of getinfo dictionary:\n"
4149
for (key, value) in info
4250
(key == :sol) && continue
51+
if key in HIDDEN_GETINFO_KEYS_MHE || key in HIDDEN_GETINFO_KEYS_MPC
52+
# skip the redundant non-Unicode keys
53+
continue
54+
end
4355
mystr *= " :$key => $value\n"
4456
end
4557
if haskey(info, :sol)

0 commit comments

Comments
 (0)