We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4e88ab commit 7eb8c16Copy full SHA for 7eb8c16
test/nlp/basic.jl
@@ -17,7 +17,7 @@ function test_autodiff_model(name; kwargs...)
17
nlp = ADNLPModel(f, x0, c, [0.0], [0.0]; kwargs...)
18
@test obj(nlp, x0) == f(x0)
19
20
- x = range(-1, stop = 1, length = 100)
+ x = range(-1, stop = 1, length = 100) |> collect
21
y = 2x .+ 3 + randn(100) * 0.1
22
regr = LinearRegression(x, y)
23
nlp = ADNLPModel(regr, ones(2); kwargs...)
0 commit comments