We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19803b0 commit d548652Copy full SHA for d548652
1 file changed
src/Nonlinear/model.jl
@@ -78,14 +78,14 @@ function set_objective(model::Model, ::Nothing)
78
end
79
80
"""
81
- nonlinear_model(backend::AbstractAutomaticDifferentiation)
+ model(backend::AbstractAutomaticDifferentiation)
82
83
Return a new nonlinear model appropriate for the given AD `backend`.
84
85
The default returns `Model()`. Custom AD backends can override this
86
to return their own model type.
87
88
-nonlinear_model(::AbstractAutomaticDifferentiation) = Model()
+model(::AbstractAutomaticDifferentiation) = Model()
89
90
91
add_expression(model::Model, expr)::ExpressionIndex
0 commit comments