Skip to content

Commit 84d9235

Browse files
Update optimization_problems.jl
This is inconsistent with the description below, which states that the array must be sized to match the number of constraints. I also cannot think of a reason why the constraint expressions should match the geometry of the minimisation variable (and many cases where this would not be true), so I am assuming that this is an erroneous half-sentence that can be removed.
1 parent 252625c commit 84d9235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problems/optimization_problems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ where `(lb[i],ub[i])` is the box constraint (lower and upper bounds) for `u[i]`.
4949
5050
`lcons` and `ucons` are the upper and lower bounds in case of inequality constraints on the
5151
optimization and if they are set to be equal then it represents an equality constraint.
52-
They should be an `AbstractArray` matching the geometry of `u`, where `(lcons[i],ucons[i])`
52+
They should be an `AbstractArray`, where `(lcons[i],ucons[i])`
5353
are the lower and upper bounds for `cons[i]`.
5454
5555
The `f` in the `OptimizationProblem` should typically be an instance of [`OptimizationFunction`](https://docs.sciml.ai/Optimization/stable/API/optimization_function/#optfunction)

0 commit comments

Comments
 (0)