Skip to content

Commit

Permalink
[docs] clarify user-defined functions return scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Apr 9, 2021
1 parent b6d9ddf commit d19090d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/manual/nlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ In addition to this list of functions, it is possible to register custom
a function is not needed. Two exceptions are if you want to provide custom
derivatives, or if the function is not available in the scope of the
nonlinear expression.

!!! warning
User-defined functions must return a scalar output. For a work-around, see
[User-defined functions with vector outputs](@ref).

### Automatic differentiation

Expand Down

0 comments on commit d19090d

Please sign in to comment.