-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Second order correction #8
base: master
Are you sure you want to change the base?
Conversation
Está conflitando, fazer dar uma olhada com o GitKraken pra corrigir. |
ZWZ = Z' * W * Z | ||
LSMR = lsmr(A, -cx, radius = relax_param * tr.radius, atol = atol, rtol = rtol, itmax = max(2 * n, 50)) | ||
v = LSMR[1] | ||
ZWZ = Z' * W * Z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZWZ = Z' * W * Z | |
ZWZ = Z' * W * Z |
src/SQP.jl
Outdated
CG = cg(ZWZ, -ZWv, radius = sqrt(tr.radius^2 - norm(v)^2), atol = atol, rtol= 0.0, itmax = max(2 * n, 50)) | ||
u = CG[1] | ||
Zu = Z * u | ||
d = v + Zu | ||
norm_v = norm(v) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CG = cg(ZWZ, -ZWv, radius = sqrt(tr.radius^2 - norm(v)^2), atol = atol, rtol= 0.0, itmax = max(2 * n, 50)) | |
u = CG[1] | |
Zu = Z * u | |
d = v + Zu | |
norm_v = norm(v) | |
CG = cg(ZWZ, -ZWv, radius = sqrt(tr.radius^2 - norm(v)^2), atol = atol, rtol= 0.0, itmax = max(2 * n, 50)) | |
u = CG[1] | |
Zu = Z * u | |
d = v + Zu | |
norm_v = norm(v) |
ϕx = fx + μ * norm_cx | ||
ϕn = next_f + μ * next_norm_c | ||
Δm = μ * vpred - dpred | ||
μ_norm_cx = μ * norm_cx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ_norm_cx = μ * norm_cx | |
μ_norm_cx = μ * norm_cx |
y = LSMR_dual[1] | ||
W = Symmetric(hess(nlp, x, y), :L) | ||
Z = nullspace(Matrix(A)) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diversos lugares acima. Por favor use um editor que permite a substituição de TAB por espaços ou faça manualmente.
|
||
update!(tr, norm(d)) | ||
|
||
update!(tr, norm(d, 2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update!(tr, norm(d, 2)) | |
update!(tr, norm(d)) |
Por padrão é a 2.
implementação da correção de 2a ordem