Skip to content

Commit

Permalink
Update basic_problems.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Dec 20, 2023
1 parent fb31012 commit d388072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/problems/basic_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ are the lower and upper bounds for `cons[i]`.
The `f` in the `OptimizationProblem` should typically be an instance of [`OptimizationFunction`](@ref)
to specify the objective function and its derivatives either by passing
predefined functions for them or automatically generated using the [`ADType`](@ref).
predefined functions for them or automatically generated using the [ADType](https://github.com/SciML/ADTypes.jl).
If `f` is a standard Julia function, it is automatically transformed into an
`OptimizationFunction` with `NoAD()`, meaning the derivative functions are not
Expand All @@ -639,7 +639,7 @@ Any extra keyword arguments are captured to be sent to the optimizers.
## Inequality and Equality Constraints
Both inequality and equality constraints are defined by the `f.cons` function in the [`OptimizationFunction`](@ref)
Both inequality and equality constraints are defined by the `f.cons` function in the [`OptimizationFunction`](https://docs.sciml.ai/Optimization/stable/API/optimization_function/#optfunction)
description of the problem structure. This `f.cons` is given as a function `f.cons(u,p)` which computes
the value of the constraints at `u`. For example, take `f.cons(u,p) = u[1] - u[2]`.
With these definitions, `lcons` and `ucons` define the bounds on the constraint that the solvers try to satisfy.
Expand Down

0 comments on commit d388072

Please sign in to comment.