Skip to content

Commit

Permalink
Fix a constant in sinquad
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Oct 13, 2019
1 parent 3a1c801 commit c634a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sinquad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function sinquad(n :: Int=100)
@NLobjective(
nlp,
Min,
(x[1] - 4.0)^4 + (x[n]^2 - x[1]^2)^2 + sum((sin(x[i] - x[n]) - x[1]^2 + x[i]^2)^2 for i=2:n-1)
(x[1] - 1.0)^4 + (x[n]^2 - x[1]^2)^2 + sum((sin(x[i] - x[n]) - x[1]^2 + x[i]^2)^2 for i=2:n-1)
)

return nlp
Expand Down

0 comments on commit c634a75

Please sign in to comment.