We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9517db7 commit 14a511aCopy full SHA for 14a511a
src/R2N.jl
@@ -46,8 +46,8 @@ function R2NSolver(
46
s = similar(x0)
47
s1 = similar(x0)
48
49
- v0 = randn(T, length(x0))
50
- v0 ./= norm(v0)
+ v0 = [(-1.0)^i for i in 0:(reg_nlp.model.meta.nvar-1)]
+ v0 ./= sqrt(reg_nlp.model.meta.nvar)
51
52
has_bnds = any(l_bound .!= T(-Inf)) || any(u_bound .!= T(Inf))
53
if has_bnds
0 commit comments