SciML / Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface.
https://docs.sciml.ai/Optimization/stable/
MIT License
708 stars 78 forks source link

Automatic transformation of constraints to indicator functions #354

Open baggepinnen opened 2 years ago

baggepinnen commented 2 years ago

The options for solving constrained problems are currently rather limited. It'd be nice if any constraints $l \leq c(x) \leq u$ present could be automatically transformed to indicator functions and added to the cost (l <= c(x) <= u) ? 0 : Inf

Vaibhavdixit02 commented 6 months ago

Related thoughts https://github.com/SciML/Optimization.jl/issues/18#issuecomment-1951342112