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 1589b39 commit ec02da6Copy full SHA for ec02da6
src/R2N.jl
@@ -48,8 +48,8 @@ function R2NSolver(
48
s = similar(x0)
49
s1 = similar(x0)
50
51
- v0 = randn(T, length(x0))
52
- v0 ./= norm(v0)
+ v0 = [(-1.0)^i for i in 0:(reg_nlp.model.meta.nvar-1)]
+ v0 ./= sqrt(reg_nlp.model.meta.nvar)
53
54
has_bnds = any(l_bound .!= T(-Inf)) || any(u_bound .!= T(Inf))
55
if has_bnds
0 commit comments