refactor: Major reorganization of optimization_engine module structure
BREAKING CHANGE: Module paths have been reorganized for better maintainability.
Backwards compatibility aliases with deprecation warnings are provided.
New Structure:
- core/ - Optimization runners (runner, intelligent_optimizer, etc.)
- processors/ - Data processing
- surrogates/ - Neural network surrogates
- nx/ - NX/Nastran integration (solver, updater, session_manager)
- study/ - Study management (creator, wizard, state, reset)
- reporting/ - Reports and analysis (visualizer, report_generator)
- config/ - Configuration management (manager, builder)
- utils/ - Utilities (logger, auto_doc, etc.)
- future/ - Research/experimental code
Migration:
- ~200 import changes across 125 files
- All __init__.py files use lazy loading to avoid circular imports
- Backwards compatibility layer supports old import paths with warnings
- All existing functionality preserved
To migrate existing code:
OLD: from optimization_engine.nx_solver import NXSolver
NEW: from optimization_engine.nx.solver import NXSolver
OLD: from optimization_engine.runner import OptimizationRunner
NEW: from optimization_engine.core.runner import OptimizationRunner
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:30:59 -05:00
|
|
|
"""
|
|
|
|
|
Configuration Management
|
|
|
|
|
========================
|
|
|
|
|
|
|
|
|
|
Configuration loading, validation, and building.
|
|
|
|
|
|
|
|
|
|
Modules:
|
|
|
|
|
- manager: ConfigManager for loading/saving configs
|
|
|
|
|
- builder: OptimizationConfigBuilder for creating configs
|
|
|
|
|
- setup_wizard: Interactive configuration setup
|
|
|
|
|
- capability_matcher: Match capabilities to requirements
|
2026-01-20 13:11:42 -05:00
|
|
|
- spec_models: AtomizerSpec v2.0 Pydantic models (unified configuration)
|
refactor: Major reorganization of optimization_engine module structure
BREAKING CHANGE: Module paths have been reorganized for better maintainability.
Backwards compatibility aliases with deprecation warnings are provided.
New Structure:
- core/ - Optimization runners (runner, intelligent_optimizer, etc.)
- processors/ - Data processing
- surrogates/ - Neural network surrogates
- nx/ - NX/Nastran integration (solver, updater, session_manager)
- study/ - Study management (creator, wizard, state, reset)
- reporting/ - Reports and analysis (visualizer, report_generator)
- config/ - Configuration management (manager, builder)
- utils/ - Utilities (logger, auto_doc, etc.)
- future/ - Research/experimental code
Migration:
- ~200 import changes across 125 files
- All __init__.py files use lazy loading to avoid circular imports
- Backwards compatibility layer supports old import paths with warnings
- All existing functionality preserved
To migrate existing code:
OLD: from optimization_engine.nx_solver import NXSolver
NEW: from optimization_engine.nx.solver import NXSolver
OLD: from optimization_engine.runner import OptimizationRunner
NEW: from optimization_engine.core.runner import OptimizationRunner
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:30:59 -05:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
# Lazy imports to avoid circular dependencies
|
|
|
|
|
def __getattr__(name):
|
|
|
|
|
if name == 'ConfigManager':
|
|
|
|
|
from .manager import ConfigManager
|
|
|
|
|
return ConfigManager
|
|
|
|
|
elif name == 'ConfigValidationError':
|
|
|
|
|
from .manager import ConfigValidationError
|
|
|
|
|
return ConfigValidationError
|
|
|
|
|
elif name == 'OptimizationConfigBuilder':
|
|
|
|
|
from .builder import OptimizationConfigBuilder
|
|
|
|
|
return OptimizationConfigBuilder
|
|
|
|
|
elif name == 'SetupWizard':
|
|
|
|
|
from .setup_wizard import SetupWizard
|
|
|
|
|
return SetupWizard
|
|
|
|
|
elif name == 'CapabilityMatcher':
|
|
|
|
|
from .capability_matcher import CapabilityMatcher
|
|
|
|
|
return CapabilityMatcher
|
|
|
|
|
elif name == 'TemplateLoader':
|
|
|
|
|
from .template_loader import TemplateLoader
|
|
|
|
|
return TemplateLoader
|
2026-01-20 13:11:42 -05:00
|
|
|
elif name == 'AtomizerSpec':
|
|
|
|
|
from .spec_models import AtomizerSpec
|
|
|
|
|
return AtomizerSpec
|
|
|
|
|
elif name == 'SpecValidator':
|
|
|
|
|
from .spec_validator import SpecValidator
|
|
|
|
|
return SpecValidator
|
|
|
|
|
elif name == 'SpecValidationError':
|
|
|
|
|
from .spec_validator import SpecValidationError
|
|
|
|
|
return SpecValidationError
|
|
|
|
|
elif name == 'validate_spec':
|
|
|
|
|
from .spec_validator import validate_spec
|
|
|
|
|
return validate_spec
|
|
|
|
|
elif name == 'SpecMigrator':
|
|
|
|
|
from .migrator import SpecMigrator
|
|
|
|
|
return SpecMigrator
|
|
|
|
|
elif name == 'migrate_config':
|
|
|
|
|
from .migrator import migrate_config
|
|
|
|
|
return migrate_config
|
|
|
|
|
elif name == 'migrate_config_file':
|
|
|
|
|
from .migrator import migrate_config_file
|
|
|
|
|
return migrate_config_file
|
refactor: Major reorganization of optimization_engine module structure
BREAKING CHANGE: Module paths have been reorganized for better maintainability.
Backwards compatibility aliases with deprecation warnings are provided.
New Structure:
- core/ - Optimization runners (runner, intelligent_optimizer, etc.)
- processors/ - Data processing
- surrogates/ - Neural network surrogates
- nx/ - NX/Nastran integration (solver, updater, session_manager)
- study/ - Study management (creator, wizard, state, reset)
- reporting/ - Reports and analysis (visualizer, report_generator)
- config/ - Configuration management (manager, builder)
- utils/ - Utilities (logger, auto_doc, etc.)
- future/ - Research/experimental code
Migration:
- ~200 import changes across 125 files
- All __init__.py files use lazy loading to avoid circular imports
- Backwards compatibility layer supports old import paths with warnings
- All existing functionality preserved
To migrate existing code:
OLD: from optimization_engine.nx_solver import NXSolver
NEW: from optimization_engine.nx.solver import NXSolver
OLD: from optimization_engine.runner import OptimizationRunner
NEW: from optimization_engine.core.runner import OptimizationRunner
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:30:59 -05:00
|
|
|
raise AttributeError(f"module 'optimization_engine.config' has no attribute '{name}'")
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
'ConfigManager',
|
|
|
|
|
'ConfigValidationError',
|
|
|
|
|
'OptimizationConfigBuilder',
|
|
|
|
|
'SetupWizard',
|
|
|
|
|
'CapabilityMatcher',
|
|
|
|
|
'TemplateLoader',
|
2026-01-20 13:11:42 -05:00
|
|
|
'AtomizerSpec',
|
|
|
|
|
'SpecValidator',
|
|
|
|
|
'SpecValidationError',
|
|
|
|
|
'validate_spec',
|
|
|
|
|
'SpecMigrator',
|
|
|
|
|
'migrate_config',
|
|
|
|
|
'migrate_config_file',
|
refactor: Major reorganization of optimization_engine module structure
BREAKING CHANGE: Module paths have been reorganized for better maintainability.
Backwards compatibility aliases with deprecation warnings are provided.
New Structure:
- core/ - Optimization runners (runner, intelligent_optimizer, etc.)
- processors/ - Data processing
- surrogates/ - Neural network surrogates
- nx/ - NX/Nastran integration (solver, updater, session_manager)
- study/ - Study management (creator, wizard, state, reset)
- reporting/ - Reports and analysis (visualizer, report_generator)
- config/ - Configuration management (manager, builder)
- utils/ - Utilities (logger, auto_doc, etc.)
- future/ - Research/experimental code
Migration:
- ~200 import changes across 125 files
- All __init__.py files use lazy loading to avoid circular imports
- Backwards compatibility layer supports old import paths with warnings
- All existing functionality preserved
To migrate existing code:
OLD: from optimization_engine.nx_solver import NXSolver
NEW: from optimization_engine.nx.solver import NXSolver
OLD: from optimization_engine.runner import OptimizationRunner
NEW: from optimization_engine.core.runner import OptimizationRunner
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 12:30:59 -05:00
|
|
|
]
|