Skip to content

Commit

Permalink
Add snapshot tests for ropt config generation
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Feb 3, 2025
1 parent 7c27a9c commit b6dfb6c
Show file tree
Hide file tree
Showing 4 changed files with 690 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
{
"function_estimators": [
{
"method": "mean",
"options": {}
}
],
"gradient": {
"boundary_types": [
3,
3,
3
],
"merge_realizations": false,
"number_of_perturbations": 7,
"perturbation_magnitudes": [
0.005,
0.005,
0.005
],
"perturbation_min_success": 7,
"perturbation_types": [
1,
1,
1
],
"samplers": null,
"seed": [
999
]
},
"linear_constraints": {
"coefficients": [
[
0.0,
0.0,
1.0
]
],
"rhs_values": [
0.4
],
"types": [
1
]
},
"nonlinear_constraints": {
"auto_scale": [
false
],
"function_estimators": null,
"realization_filters": null,
"rhs_values": [
0.1
],
"scales": [
0.1
],
"types": [
2
]
},
"objectives": {
"auto_scale": [
false
],
"function_estimators": [
0
],
"realization_filters": null,
"scales": [
1.0
],
"weights": [
1.0
]
},
"optimizer": {
"max_functions": null,
"max_iterations": null,
"method": "optpp_q_newton",
"options": {},
"output_dir": "/Users/yngves.kristiansen/Documents/Repositories/oppdrag/equinor/ert/test-data/everest/math_func/everest_output/optimization_output",
"parallel": true,
"speculative": true,
"split_evaluations": false,
"tolerance": 0.005
},
"original_inputs": {
"function_estimators": [
{
"method": "mean"
}
],
"gradient": {
"merge_realizations": false,
"number_of_perturbations": 7,
"perturbation_magnitudes": [
0.005,
0.005,
0.005
],
"perturbation_types": [
1,
1,
1
],
"seed": 999
},
"linear_constraints": {
"coefficients": [
[
0.0,
0.0,
1.0
]
],
"rhs_values": [
0.4
],
"types": [
1
]
},
"nonlinear_constraints": {
"auto_scale": [
false
],
"rhs_values": [
0.1
],
"scales": [
0.1
],
"types": [
2
]
},
"objectives": {
"auto_scale": [
false
],
"function_estimators": [
0
],
"scales": [
1.0
],
"weights": [
1.0
]
},
"optimizer": {
"method": "optpp_q_newton",
"options": {},
"output_dir": "/Users/yngves.kristiansen/Documents/Repositories/oppdrag/equinor/ert/test-data/everest/math_func/everest_output/optimization_output",
"parallel": true,
"speculative": true,
"tolerance": 0.005
},
"realizations": {
"weights": [
0.25,
0.75
]
},
"variables": {
"indices": [
0,
1,
2
],
"initial_values": [
0.25,
0.25,
0.25
],
"lower_bounds": [
-1.0,
-1.0,
-1.0
],
"offsets": [
0.0,
0.0,
0.0
],
"scales": [
1.0,
1.0,
1.0
],
"types": [
1,
1,
1
],
"upper_bounds": [
1.0,
1.0,
1.0
]
}
},
"realization_filters": [],
"realizations": {
"realization_min_success": 2,
"weights": [
0.25,
0.75
]
},
"samplers": [
{
"method": "scipy/default",
"options": {},
"shared": false
}
],
"variables": {
"indices": [
0,
1,
2
],
"initial_values": [
0.25,
0.25,
0.25
],
"lower_bounds": [
-1.0,
-1.0,
-1.0
],
"offsets": [
0.0,
0.0,
0.0
],
"scales": [
1.0,
1.0,
1.0
],
"types": [
1,
1,
1
],
"upper_bounds": [
1.0,
1.0,
1.0
]
}
}
Loading

0 comments on commit b6dfb6c

Please sign in to comment.