-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snapshot tests for ropt config generation
- Loading branch information
Showing
4 changed files
with
405 additions
and
0 deletions.
There are no files selected for viewing
141 changes: 141 additions & 0 deletions
141
.../test_ropt_initialization/test_everest2ropt_snapshot/config_advanced.yml/ropt_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
{ | ||
"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": "not_relevant", | ||
"parallel": true, | ||
"speculative": true, | ||
"split_evaluations": false, | ||
"tolerance": 0.005 | ||
}, | ||
"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 | ||
] | ||
} | ||
} |
111 changes: 111 additions & 0 deletions
111
...s/test_ropt_initialization/test_everest2ropt_snapshot/config_minimal.yml/ropt_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"function_estimators": [ | ||
{ | ||
"method": "mean", | ||
"options": {} | ||
} | ||
], | ||
"gradient": { | ||
"boundary_types": [ | ||
3, | ||
3, | ||
3 | ||
], | ||
"merge_realizations": false, | ||
"number_of_perturbations": 5, | ||
"perturbation_magnitudes": [ | ||
0.001, | ||
0.001, | ||
0.001 | ||
], | ||
"perturbation_min_success": 5, | ||
"perturbation_types": [ | ||
1, | ||
1, | ||
1 | ||
], | ||
"samplers": null, | ||
"seed": [ | ||
123 | ||
] | ||
}, | ||
"linear_constraints": null, | ||
"nonlinear_constraints": null, | ||
"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": "not_relevant", | ||
"parallel": true, | ||
"speculative": false, | ||
"split_evaluations": false, | ||
"tolerance": 0.001 | ||
}, | ||
"realization_filters": [], | ||
"realizations": { | ||
"realization_min_success": 1, | ||
"weights": [ | ||
1.0 | ||
] | ||
}, | ||
"samplers": [ | ||
{ | ||
"method": "scipy/default", | ||
"options": {}, | ||
"shared": false | ||
} | ||
], | ||
"variables": { | ||
"indices": [ | ||
0, | ||
1, | ||
2 | ||
], | ||
"initial_values": [ | ||
0.1, | ||
0.1, | ||
0.1 | ||
], | ||
"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 | ||
] | ||
} | ||
} |
115 changes: 115 additions & 0 deletions
115
.../test_ropt_initialization/test_everest2ropt_snapshot/config_multiobj.yml/ropt_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"function_estimators": [ | ||
{ | ||
"method": "mean", | ||
"options": {} | ||
} | ||
], | ||
"gradient": { | ||
"boundary_types": [ | ||
3, | ||
3, | ||
3 | ||
], | ||
"merge_realizations": false, | ||
"number_of_perturbations": 5, | ||
"perturbation_magnitudes": [ | ||
0.01, | ||
0.01, | ||
0.01 | ||
], | ||
"perturbation_min_success": 5, | ||
"perturbation_types": [ | ||
1, | ||
1, | ||
1 | ||
], | ||
"samplers": null, | ||
"seed": [ | ||
999 | ||
] | ||
}, | ||
"linear_constraints": null, | ||
"nonlinear_constraints": null, | ||
"objectives": { | ||
"auto_scale": [ | ||
false, | ||
false | ||
], | ||
"function_estimators": [ | ||
0, | ||
0 | ||
], | ||
"realization_filters": null, | ||
"scales": [ | ||
0.6666666666666666, | ||
1.0 | ||
], | ||
"weights": [ | ||
0.6666666666666666, | ||
0.3333333333333333 | ||
] | ||
}, | ||
"optimizer": { | ||
"max_functions": null, | ||
"max_iterations": null, | ||
"method": "optpp_q_newton", | ||
"options": {}, | ||
"output_dir": "not_relevant", | ||
"parallel": true, | ||
"speculative": false, | ||
"split_evaluations": false, | ||
"tolerance": 0.005 | ||
}, | ||
"realization_filters": [], | ||
"realizations": { | ||
"realization_min_success": 1, | ||
"weights": [ | ||
1.0 | ||
] | ||
}, | ||
"samplers": [ | ||
{ | ||
"method": "scipy/default", | ||
"options": {}, | ||
"shared": false | ||
} | ||
], | ||
"variables": { | ||
"indices": [ | ||
0, | ||
1, | ||
2 | ||
], | ||
"initial_values": [ | ||
0.0, | ||
0.0, | ||
0.0 | ||
], | ||
"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 | ||
] | ||
} | ||
} |
Oops, something went wrong.