Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add instantiate_function docs
  • Loading branch information
mzhen77 authored May 27, 2022
commit 73dee4d1348f671260362b604c9a1a9cc4b02703
8 changes: 8 additions & 0 deletions docs/src/API/optimization_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ The choices for the auto-AD fill-ins with quick descriptions are:

The following sections describe the Auto-AD choices in detail.

### Using instantiate_function

`instantiate_function()` builds the closures required for the calls to exist without the `p` parameters as part of it, which is required by many of the optimizers. For example,

```julia
GalacticOptim.instantiate_function(f, p, adtype, nothing)
```

### AutoForwardDiff

This uses the [ForwardDiff.jl](https://github.com/JuliaDiff/ForwardDiff.jl)
Expand Down