Skip to content

Commit

Permalink
Fix typos in README (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 21, 2024
1 parent 8b166f9 commit 44dc19d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ all constraints.

## Automatic differetiation

Some algorithms in NLopt required derivatives, which you must manually provide
Some algorithms in NLopt require derivatives, which you must manually provide
in the `if length(grad) > 0` branch of your objective and constraint functions.

To stay simple and lightweighht, NLopt does not provide ways to automatically
To stay simple and lightweight, NLopt does not provide ways to automatically
compute derivatives. If you do not have analytic expressions for the derivatives,
use package such as [ForwardDiff.jl](https://github.com/JuliaDiff/ForwardDiff.jl)
use a package such as [ForwardDiff.jl](https://github.com/JuliaDiff/ForwardDiff.jl)
to compute automatic derivatives.

Here is an example of how to wrap a function `f(x::Vector)` using ForwardDiff so
Expand Down

0 comments on commit 44dc19d

Please sign in to comment.