Refactor optimization configuration and constants integrationโ
haileyhalimj@gmail.com
fa2c20f
- Updated `optimization_config.py` to utilize constants from `constants.py` for better maintainability.
- Added new constants for line counts, maximum parallel workers, and default rates.
- Enhanced session state initialization in `config_page.py` to use values from `DefaultConfig`.
- Improved architecture diagram to reflect changes in optimization flow.
๐ Replace get_per_product_speed() with direct extract.read_package_speed_data() callsโ
haileyhalimj@gmail.com
60e706b
- Remove redundant get_per_product_speed() wrapper function
- Replace all 6 usage locations with direct extract.read_package_speed_data() calls
- Updated files:
- src/config/optimization_config.py: Remove function definition and update calls
- src/models/optimizer_real.py: Remove import and update calls
- src/demand_filtering.py: Direct import and call (2 locations)
- ui/pages/optimization_results.py: Direct import and call
- src/demand_validation_viz.py: Direct import and call
- Eliminate unnecessary abstraction layer
- Improve code clarity by using direct function calls
- Reduce function call overhead
๐ Reorganize project structure: Move UI files to dedicated directoryโ
haileyhalimj@gmail.com
51b84b9
- Move app.py, config_page.py, optimization_results.py to ui/ directory
- Create proper UI package structure with pages/ and components/ subdirectories
- Update all import paths to reflect new structure
- Add main.py as new project entry point
- Update README.md with new project structure documentation
- Preserve Git history using git mv for all file moves
- Maintain separation of concerns: UI logic in ui/, business logic in src/
- Improve project maintainability and scalability