Skip to content

Commit

Permalink
Explicitly sort dicts in test_api_snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Jan 8, 2025
1 parent 383d645 commit 8fab609
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 147 deletions.
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
{
"batches": [
"accepted_batches": [
0,
1,
2,
3,
4,
5
],
"control_names": [
"point_x-0",
"point_x-1",
"point_x-2"
],
"accepted_batches": [
"batches": [
0,
1,
2,
3,
4,
5
],
"objective_function_names": [
"distance"
],
"output_constraint_names": [
"x-0_coord"
],
"realizations": [
0,
2
],
"simulations": [
0,
1
"control_names": [
"point_x-0",
"point_x-1",
"point_x-2"
],
"control_values": [
{
Expand Down Expand Up @@ -216,38 +202,6 @@
"value": 0.38836369
}
],
"single_objective_values": [
{
"batch": 0,
"objective": -1.6875,
"accepted": 1
},
{
"batch": 1,
"objective": -1.69281773,
"accepted": 1
},
{
"batch": 2,
"objective": -1.73561919,
"accepted": 1
},
{
"batch": 3,
"objective": -1.6236748,
"accepted": 1
},
{
"batch": 4,
"objective": -1.539793,
"accepted": 1
},
{
"batch": 5,
"objective": -1.52561897,
"accepted": 1
}
],
"gradient_values": [
{
"batch": 0,
Expand Down Expand Up @@ -359,21 +313,20 @@
}
],
"input_constraint('point_x-0')": {
"min": -1.0,
"max": 1.0
"max": 1.0,
"min": -1.0
},
"input_constraint('point_x-1')": {
"min": -1.0,
"max": 1.0
"max": 1.0,
"min": -1.0
},
"input_constraint('point_x-2')": {
"min": -1.0,
"max": 1.0
},
"output_constraint('x-0_coord')": {
"type": "ge",
"right_hand_side": 0.1
"max": 1.0,
"min": -1.0
},
"objective_function_names": [
"distance"
],
"optimal_result_json": {
"batch": 5,
"controls": {
Expand All @@ -382,5 +335,52 @@
"point_x-2": 0.38836369
},
"total_objective": -1.52561897
}
},
"output_constraint('x-0_coord')": {
"right_hand_side": 0.1,
"type": "ge"
},
"output_constraint_names": [
"x-0_coord"
],
"realizations": [
0,
2
],
"simulations": [
0,
1
],
"single_objective_values": [
{
"batch": 0,
"objective": -1.6875,
"accepted": 1
},
{
"batch": 1,
"objective": -1.69281773,
"accepted": 1
},
{
"batch": 2,
"objective": -1.73561919,
"accepted": 1
},
{
"batch": 3,
"objective": -1.6236748,
"accepted": 1
},
{
"batch": 4,
"objective": -1.539793,
"accepted": 1
},
{
"batch": 5,
"objective": -1.52561897,
"accepted": 1
}
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"accepted_batches": [
0,
2
],
"batches": [
0,
1,
Expand All @@ -9,20 +13,6 @@
"point_y",
"point_z"
],
"accepted_batches": [
0,
2
],
"objective_function_names": [
"distance"
],
"output_constraint_names": [],
"realizations": [
0
],
"simulations": [
0
],
"control_values": [
{
"control": "point_x",
Expand Down Expand Up @@ -70,23 +60,6 @@
"value": 0.49962361
}
],
"single_objective_values": [
{
"batch": 0,
"objective": -0.47999999,
"accepted": 1
},
{
"batch": 1,
"objective": -0.48021799,
"accepted": 0
},
{
"batch": 2,
"objective": -2.2e-7,
"accepted": 1
}
],
"gradient_values": [
{
"batch": 0,
Expand All @@ -108,17 +81,20 @@
}
],
"input_constraint('point_x')": {
"min": -1.0,
"max": 1.0
"max": 1.0,
"min": -1.0
},
"input_constraint('point_y')": {
"min": -1.0,
"max": 1.0
"max": 1.0,
"min": -1.0
},
"input_constraint('point_z')": {
"min": -1.0,
"max": 1.0
"max": 1.0,
"min": -1.0
},
"objective_function_names": [
"distance"
],
"optimal_result_json": {
"batch": 2,
"controls": {
Expand All @@ -127,5 +103,29 @@
"point_z": 0.49962361
},
"total_objective": -2.2e-7
}
},
"output_constraint_names": [],
"realizations": [
0
],
"simulations": [
0
],
"single_objective_values": [
{
"batch": 0,
"objective": -0.47999999,
"accepted": 1
},
{
"batch": 1,
"objective": -0.48021799,
"accepted": 0
},
{
"batch": 2,
"objective": -2.2e-7,
"accepted": 1
}
]
}
Loading

0 comments on commit 8fab609

Please sign in to comment.