Skip to content

Commit

Permalink
Update nlp/basic.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Dec 21, 2024
1 parent b4e88ab commit 7eb8c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/nlp/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function test_autodiff_model(name; kwargs...)
nlp = ADNLPModel(f, x0, c, [0.0], [0.0]; kwargs...)
@test obj(nlp, x0) == f(x0)

x = range(-1, stop = 1, length = 100)
x = range(-1, stop = 1, length = 100) |> collect
y = 2x .+ 3 + randn(100) * 0.1
regr = LinearRegression(x, y)
nlp = ADNLPModel(regr, ones(2); kwargs...)
Expand Down

0 comments on commit 7eb8c16

Please sign in to comment.