Skip to content

Commit 501c419

Browse files
committed
Annot more
1 parent 3880018 commit 501c419

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RegisterOptimize.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function optimize_rigid(fixed, moving, A::AffineMap, maxshift,
101101

102102
stat = MathProgBase.status(m)
103103
p = MathProgBase.getsolution(m)
104-
stat == :Optimal || (@warn("Solution was not optimal"); @show p)
104+
stat == :Optimal || (@warn("Solution was not optimal 1"); @show p)
105105
fval = MathProgBase.getobjval(m)
106106

107107
p2rigid(p, SD), fval
@@ -475,7 +475,7 @@ function find_opt(P::AffineQHessian{AP,M,N,Φ}, b, maxshift, x0) where {AP,M,N,
475475
MathProgBase.setwarmstart!(m, x0)
476476
MathProgBase.optimize!(m)
477477
stat = MathProgBase.status(m)
478-
stat == :Optimal || @warn("Solution was not optimal")
478+
stat == :Optimal || (@warn("Solution was not optimal 2"); @show p)
479479
MathProgBase.getsolution(m)
480480
end
481481

@@ -608,7 +608,7 @@ function _optimize!(objective, ϕ, dp, mmis, tol, print_level; kwargs...)
608608
MathProgBase.optimize!(m)
609609

610610
stat = MathProgBase.status(m)
611-
stat == :Optimal || @warn("Solution was not optimal")
611+
stat == :Optimal || (@warn("Solution was not optimal 3"); @show p)
612612
uopt = MathProgBase.getsolution(m)
613613
fval = MathProgBase.getobjval(m)
614614
_copy!(ϕ, uopt)
@@ -1164,7 +1164,7 @@ function fit_sigmoid(data, bottom, top, center, width)
11641164
MathProgBase.optimize!(m)
11651165

11661166
stat = MathProgBase.status(m)
1167-
stat == :Optimal || @warn("Solution was not optimal")
1167+
stat == :Optimal || (@warn("Solution was not optimal 4"); @show p)
11681168
x = MathProgBase.getsolution(m)
11691169

11701170
x[1], x[2], x[3], x[4], MathProgBase.getobjval(m)

0 commit comments

Comments
 (0)