Migrate OptimizationBase.jl as sublibrary and apply maxsense fix #982
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates OptimizationBase.jl to become a sublibrary within Optimization.jl, consolidating the optimization ecosystem into a single repository while maintaining all existing functionality. Additionally, it applies the maxsense fix from OptimizationBase.jl#146.
Motivation
Key Changes
🏗️ Migration Infrastructure
lib/OptimizationBase/
🔧 CI Configuration
🐛 Bug Fix (OptimizationBase.jl#146)
sense
parameter toinstantiate_function
📋 Issue Migration
AutoSymbolics
andAutoModelingToolkit
different backends #967-981Files Changed
Core Migration
lib/OptimizationBase/
: Complete OptimizationBase source code and tests (28 files)src/Optimization.jl
: Updated to include OptimizationBase as submoduleProject.toml
: Added OptimizationBase dependencies and compatibility constraintsCI and Testing
.github/workflows/CI.yml
: Added OptimizationBase to test matrix and coveragetest/runtests.jl
: Added OptimizationBase to core test dependenciesBug Fix Implementation
lib/OptimizationBase/src/cache.jl
: Added sense parameter supportlib/OptimizationBase/src/function.jl
: Applied maxsense fix for objective functionTesting Results
✅ OptimizationBase sublibrary: 672 tests passing, 1 error (pre-existing)
✅ Main Optimization.jl: Successfully loads with embedded OptimizationBase
✅ All functionality preserved: No breaking changes to existing API
Breaking Changes
None. This is a purely internal restructuring that maintains all existing public APIs.
Checklist
Related Issues
Closes OptimizationBase.jl#146 (maxsense fix)
Addresses repository consolidation discussed in various SciML planning issues
🤖 Generated with Claude Code