Right now you can pass constraints to your optimization problem, if the selected algorithm supports it. It would be interesting to be able to select an algorithm that supports unconstrained optimization only, and for that case use a penalty function to transpose your constraint(s) into an unconstrained problem.
Right now you can pass constraints to your optimization problem, if the selected algorithm supports it. It would be interesting to be able to select an algorithm that supports unconstrained optimization only, and for that case use a penalty function to transpose your constraint(s) into an unconstrained problem.