Skip to content

Commit 7eb8c16

Browse files
committed
Update nlp/basic.jl
1 parent b4e88ab commit 7eb8c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/nlp/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function test_autodiff_model(name; kwargs...)
1717
nlp = ADNLPModel(f, x0, c, [0.0], [0.0]; kwargs...)
1818
@test obj(nlp, x0) == f(x0)
1919

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

0 commit comments

Comments
 (0)