Question: what is the difference between constrained and unconstrained optimization?
Answer: For constrained optimization, finding points that satisfy all the constraints is often the difficult problem. One approach is to use a method for unconstrained optimization, but add a penalty according to how many constraints are violated. ... Linear programming and unconstrained optimization are both supported.