-
-
Notifications
You must be signed in to change notification settings - Fork 100
Description
What are lcons
and ucons
in the definition of an OptimizationProblem
? The documentation says:
lcons
anducons
are the upper and lower bounds for equality constraints on the optimization. They should be anAbstractArray
matching the geometry of u, where(lcons[I],ucons[I])
is the constraint (lower and upper bounds) forcons[I]
.
But in OptimizationProblem
, this cons
vector seems to take the form res = cons(x, p)
and the constranits are satisfied when res = 0
- where do the lower and upper bounds come in here? Maybe it would be useful to have a clear mathematical representation of an optimisation problem that lays this out, e.g (a LaTeXed version of?)
minimise f(u, p)
subject to lb[i] <= u[i] <= ub[i], i in eachindex(u)
lb[I] <= cons(u, p)[I] <= ucons[I], i in eachindex(u),
assuming that the latter is what lcons
/ucons
is actually supposed to represent.
Also just on the problem of this OptimizationProblem
documentation, the sense
keyword is not defined in this documentation (actually, lcons
/ucons
/sense
are the only fields left blank at the bottom), and the objective function at the start of the documentation I imagine is supposed to be just