Initial commit: NX OptiMaster project structure
- Set up Python package structure with pyproject.toml - Created MCP server, optimization engine, and NX journals modules - Added configuration templates - Implemented pluggable result extractor architecture - Comprehensive README with architecture overview - Project ready for GitHub push 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
76
config/optimization_config_template.json
Normal file
76
config/optimization_config_template.json
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"optimization": {
|
||||
"max_iterations": 100,
|
||||
"seed": 42,
|
||||
"evaluate_baseline_first": true,
|
||||
"sampler": {
|
||||
"type": "TPE",
|
||||
"n_startup_trials": 15,
|
||||
"n_ei_candidates": 150,
|
||||
"multivariate": true,
|
||||
"gamma": 0.25,
|
||||
"prior_weight": 1.0
|
||||
}
|
||||
},
|
||||
"baseline": {
|
||||
"parameter1": 10.0,
|
||||
"parameter2": 20.0
|
||||
},
|
||||
"design_variables": {
|
||||
"parameter1": {
|
||||
"type": "float",
|
||||
"low": 5.0,
|
||||
"high": 15.0,
|
||||
"description": "First design parameter",
|
||||
"enabled": true
|
||||
},
|
||||
"parameter2": {
|
||||
"type": "float",
|
||||
"low": 10.0,
|
||||
"high": 30.0,
|
||||
"description": "Second design parameter",
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"objectives": {
|
||||
"primary_strategy": "weighted_sum",
|
||||
"direction": "minimize",
|
||||
"metrics": {
|
||||
"max_stress": {
|
||||
"weight": 10,
|
||||
"target": 200.0,
|
||||
"description": "Maximum von Mises stress",
|
||||
"units": "MPa",
|
||||
"enabled": true,
|
||||
"extractor": "nastran_stress",
|
||||
"extractor_params": {
|
||||
"subcase": 101,
|
||||
"stress_type": "von_mises"
|
||||
}
|
||||
},
|
||||
"mass": {
|
||||
"weight": 1,
|
||||
"target": 0.5,
|
||||
"description": "Total mass",
|
||||
"units": "kg",
|
||||
"enabled": true,
|
||||
"extractor": "nx_mass",
|
||||
"extractor_params": {
|
||||
"bodies": "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nx_settings": {
|
||||
"sim_path": "path/to/model.sim",
|
||||
"solution_name": "Solution 1",
|
||||
"post_solve_delay_s": 5,
|
||||
"op2_timeout_s": 1800,
|
||||
"op2_stable_s": 4
|
||||
},
|
||||
"post_processing": {
|
||||
"archive_results": true,
|
||||
"export_expressions": true,
|
||||
"custom_scripts": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user