Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
498 changes: 408 additions & 90 deletions README.md

Large diffs are not rendered by default.

95 changes: 49 additions & 46 deletions benchmarks/rastrigin_benchmark.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,65 @@
{
"well_design": [
{
"well_name": "X1",
"initial_state": {
"well_type": "IWell",
"md": 10,
"md_step": 5.0,
"wellhead": {
"x": 2.0,
"y": -2.0,
"z": 0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": -5.12,
"ub": 5.12
},
"y": {
"lb": -5.12,
"ub": 5.12
"domain_services": {
"benchmark_well_design": [
{
"name": "X1",
"initial_state": {
"wellhead": {
"x": 2.0,
"y": -2.0,
"z": 0.0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": -5.12,
"ub": 5.12
},
"y": {
"lb": -5.12,
"ub": 5.12
}
}
}
}
},
{
"well_name": "X2",
"initial_state": {
"well_type": "IWell",
"md": 10,
"md_step": 5.0,
"wellhead": {
"x": -4.0,
"y": 3.1,
"z": 0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": -5.12,
"ub": 5.12
},
"y": {
"lb": -5.12,
"ub": 5.12
{
"name": "X2",
"initial_state": {
"wellhead": {
"x": -4.0,
"y": 3.1,
"z": 0.0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": -5.12,
"ub": 5.12
},
"y": {
"lb": -5.12,
"ub": 5.12
}
}
}
}
}
],
]
},
"optimization_parameters": {
"objectives": {
"y": "minimize"
},
"population_size": 100,
"max_generations": 1000,
"max_stall_generations": 1001
},
"plugins": {
"connector": "opendarts",
"optimizer": "pso",
"domain_services": [
"benchmark_well_design"
]
}
}
Binary file modified benchmarks/rastrigin_benchmark.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion benchmarks/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def _get_control_vector(nested_cv: dict) -> np.ndarray:
"""Extract a flat coordinate array from a single nested control vector dict."""
well_design = nested_cv["well_design"]
well_design = nested_cv["benchmark_well_design"]
coords_flat = []
for _, well_data in well_design.items():
coords_flat.append(well_data["wellhead"]["x"])
Expand Down
95 changes: 49 additions & 46 deletions benchmarks/zdt1_benchmark.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,56 +1,52 @@
{
"well_design": [
{
"well_name": "X1",
"initial_state": {
"well_type": "IWell",
"md": 10,
"md_step": 5.0,
"wellhead": {
"x": 0.3,
"y": 0.6,
"z": 0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 0.00,
"ub": 1.00
},
"y": {
"lb": 0.00,
"ub": 1.00
"domain_services": {
"benchmark_well_design": [
{
"name": "X1",
"initial_state": {
"wellhead": {
"x": 0.3,
"y": 0.6,
"z": 0.0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 0.0,
"ub": 1.0
},
"y": {
"lb": 0.0,
"ub": 1.0
}
}
}
}
},
{
"well_name": "X2",
"initial_state": {
"well_type": "IWell",
"md": 10,
"md_step": 5.0,
"wellhead": {
"x": 0.8,
"y": 0.5,
"z": 0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 0.00,
"ub": 1.00
},
"y": {
"lb": 0.00,
"ub": 1.00
{
"name": "X2",
"initial_state": {
"wellhead": {
"x": 0.8,
"y": 0.5,
"z": 0.0
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 0.0,
"ub": 1.0
},
"y": {
"lb": 0.0,
"ub": 1.0
}
}
}
}
}
],
]
},
"optimization_parameters": {
"objectives": {
"f1": "minimize",
Expand All @@ -59,5 +55,12 @@
"population_size": 200,
"max_generations": 300,
"max_stall_generations": 301
},
"plugins": {
"connector": "opendarts",
"optimizer": "pso",
"domain_services": [
"benchmark_well_design"
]
}
}
Binary file modified benchmarks/zdt1_benchmark.zip
Binary file not shown.
125 changes: 73 additions & 52 deletions examples/complex_model.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,90 @@
{
"run_mode": "optimization",
"well_design": [
{
"well_name": "INJ",
"initial_state": {
"well_type": "IWell",
"md": 4000.0,
"md_step": 1.0,
"wellhead": {
"x": 3460.0,
"y": 2900.0,
"z": 0.0
"plugins": {
"connector": "opendarts",
"optimizer": "pso",
"domain_services": ["well_design", "well_control"]
},
"domain_services": {
"well_control": [
{
"name": "INJ",
"initial_state": {
"flow_chop": 0.95
},
"perforations": {
"p1": {
"start_md": 3250.0,
"end_md": 3609.0
"parameter_bounds": {
"flow_chop": {
"lb": 0.8,
"ub": 1.0
}
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 1250.0,
"ub": 3750.0
}
],
"well_design": [
{
"name": "INJ",
"initial_state": {
"well_type": "IWell",
"md": 4000.0,
"md_step": 1.0,
"wellhead": {
"x": 3460.0,
"y": 2900.0,
"z": 0.0
},
"y": {
"lb": 800.0,
"ub": 3200.0
"perforations": {
"p1": {
"start_md": 3250.0,
"end_md": 3609.0
}
}
}
}
},
{
"well_name": "PROD",
"initial_state": {
"well_type": "IWell",
"md": 4000.0,
"md_step": 1.0,
"wellhead": {
"x": 1800.0,
"y": 1950.0,
"z": 0.0
},
"perforations": {
"p1": {
"start_md": 3250.0,
"end_md": 3609.0
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 1250.0,
"ub": 3750.0
},
"y": {
"lb": 800.0,
"ub": 3200.0
}
}
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 1250.0,
"ub": 3750.0
{
"name": "PROD",
"initial_state": {
"well_type": "IWell",
"md": 4000.0,
"md_step": 1.0,
"wellhead": {
"x": 1800.0,
"y": 1950.0,
"z": 0.0
},
"y": {
"lb": 800.0,
"ub": 3200.0
"perforations": {
"p1": {
"start_md": 3250.0,
"end_md": 3609.0
}
}
},
"parameter_bounds": {
"wellhead": {
"x": {
"lb": 1250.0,
"ub": 3750.0
},
"y": {
"lb": 800.0,
"ub": 3200.0
}
}
}
}
}
],
]
},
"optimization_parameters": {
"objectives": {
"Heat": "maximize"
Expand All @@ -74,7 +95,7 @@
},
"simulation_config": {
"worker_simulation_timeout_seconds": 900,
"worker_count": 8,
"worker_count": 4,
"checkpoint_interval": 1
}
}
Binary file modified examples/complex_model.zip
Binary file not shown.
Loading