...

/

Constrained Optimization

Constrained Optimization

Learn what constraints are and why they’re necessary.

At this point, we can solve almost any optimization problem either using exact, approximate, or heuristic solutions. But we haven’t learned any method to deal with constraints.

Remember the general form of an optimization algorithm:

minxf(x)s.t.:xC\min_x f(x) \\ s.t.: x \in C

Here, xx can be a number, a vector, or a matrix. The second line is a constraint. It tells us that xx has to fulfill some properties.

Constraints

Constraints are restrictions over the set of all possible solutions. When we have constraints, we can’t consider all the solutions anymore; we can only consider the solutions that fulfill the constraints. This space of ...