You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move constraint validation to common utility function
Following user feedback, the constraint validation is now done uniformly
across all solvers through a common utility function `_check_constrained_problem`
in utils.jl. This ensures consistent error messages and behavior across all
constraint-supporting solvers.
Changes:
- Added _check_constrained_problem utility function in utils.jl
- Updated LBFGS and AugLag to use the utility function
- Added validation to all other constraint-supporting solvers:
- OptimizationNLopt
- OptimizationOptimJL (IPNewton)
- OptimizationPRIMA (COBYLA, LINCOA)
- OptimizationEvolutionary
- OptimizationSciPy (ScipyMinimize, ScipyShgo)
- OptimizationMOI (NLP)
- OptimizationNOMAD
This provides a more maintainable solution that ensures all solvers
give the same helpful error message when constraint bounds are missing.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments