feat: Add MLP surrogate with Turbo Mode for 100x faster optimization
Neural Acceleration (MLP Surrogate): - Add run_nn_optimization.py with hybrid FEA/NN workflow - MLP architecture: 4-layer (64->128->128->64) with BatchNorm/Dropout - Three workflow modes: - --all: Sequential export->train->optimize->validate - --hybrid-loop: Iterative Train->NN->Validate->Retrain cycle - --turbo: Aggressive single-best validation (RECOMMENDED) - Turbo mode: 5000 NN trials + 50 FEA validations in ~12 minutes - Separate nn_study.db to avoid overloading dashboard Performance Results (bracket_pareto_3obj study): - NN prediction errors: mass 1-5%, stress 1-4%, stiffness 5-15% - Found minimum mass designs at boundary (angle~30deg, thick~30mm) - 100x speedup vs pure FEA exploration Protocol Operating System: - Add .claude/skills/ with Bootstrap, Cheatsheet, Context Loader - Add docs/protocols/ with operations (OP_01-06) and system (SYS_10-14) - Update SYS_14_NEURAL_ACCELERATION.md with MLP Turbo Mode docs NX Automation: - Add optimization_engine/hooks/ for NX CAD/CAE automation - Add study_wizard.py for guided study creation - Fix FEM mesh update: load idealized part before UpdateFemodel() New Study: - bracket_pareto_3obj: 3-objective Pareto (mass, stress, stiffness) - 167 FEA trials + 5000 NN trials completed - Demonstrates full hybrid workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
112
docs/protocols/extensions/templates/protocol_template.md
Normal file
112
docs/protocols/extensions/templates/protocol_template.md
Normal file
@@ -0,0 +1,112 @@
|
||||
# {LAYER}_{NUMBER}_{NAME}
|
||||
|
||||
<!--
|
||||
PROTOCOL: {Full Protocol Name}
|
||||
LAYER: {Operations|System|Extensions}
|
||||
VERSION: 1.0
|
||||
STATUS: Active
|
||||
LAST_UPDATED: {YYYY-MM-DD}
|
||||
PRIVILEGE: {user|power_user|admin}
|
||||
LOAD_WITH: [{dependency_protocols}]
|
||||
-->
|
||||
|
||||
## Overview
|
||||
|
||||
{1-3 sentence description of what this protocol does and why it exists.}
|
||||
|
||||
---
|
||||
|
||||
## When to Use
|
||||
|
||||
| Trigger | Action |
|
||||
|---------|--------|
|
||||
| {keyword or user intent} | Follow this protocol |
|
||||
| {condition} | Follow this protocol |
|
||||
|
||||
---
|
||||
|
||||
## Quick Reference
|
||||
|
||||
{Key information in table format for fast lookup}
|
||||
|
||||
| Parameter | Default | Description |
|
||||
|-----------|---------|-------------|
|
||||
| {param} | {value} | {description} |
|
||||
|
||||
---
|
||||
|
||||
## Detailed Specification
|
||||
|
||||
### Section 1: {Topic}
|
||||
|
||||
{Detailed content}
|
||||
|
||||
```python
|
||||
# Code example if applicable
|
||||
```
|
||||
|
||||
### Section 2: {Topic}
|
||||
|
||||
{Detailed content}
|
||||
|
||||
---
|
||||
|
||||
## Configuration
|
||||
|
||||
{If applicable, show configuration examples}
|
||||
|
||||
```json
|
||||
{
|
||||
"setting": "value"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Examples
|
||||
|
||||
### Example 1: {Scenario Name}
|
||||
|
||||
{Complete working example with context}
|
||||
|
||||
```python
|
||||
# Full working code example
|
||||
```
|
||||
|
||||
### Example 2: {Scenario Name}
|
||||
|
||||
{Another example showing different use case}
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Symptom | Cause | Solution |
|
||||
|---------|-------|----------|
|
||||
| {error message or symptom} | {root cause} | {how to fix} |
|
||||
| {symptom} | {cause} | {solution} |
|
||||
|
||||
---
|
||||
|
||||
## Cross-References
|
||||
|
||||
- **Depends On**: [{protocol_name}]({relative_path})
|
||||
- **Used By**: [{protocol_name}]({relative_path})
|
||||
- **See Also**: [{related_doc}]({path})
|
||||
|
||||
---
|
||||
|
||||
## Implementation Files
|
||||
|
||||
{If applicable, list the code files that implement this protocol}
|
||||
|
||||
- `path/to/file.py` - {description}
|
||||
- `path/to/other.py` - {description}
|
||||
|
||||
---
|
||||
|
||||
## Version History
|
||||
|
||||
| Version | Date | Changes |
|
||||
|---------|------|---------|
|
||||
| 1.0 | {YYYY-MM-DD} | Initial release |
|
||||
Reference in New Issue
Block a user