We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e4a61 commit 19803b0Copy full SHA for 19803b0
1 file changed
src/Nonlinear/model.jl
@@ -77,6 +77,16 @@ function set_objective(model::Model, ::Nothing)
77
return
78
end
79
80
+"""
81
+ nonlinear_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()
89
90
"""
91
add_expression(model::Model, expr)::ExpressionIndex
92
0 commit comments