Skip to content

Commit

Permalink
problem: Update dtlz tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspcr committed Sep 12, 2024
1 parent 0f2e58a commit 7823229
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 35 deletions.
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ1FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{9.86928923, 8.06270417, 419.7421470},
},
Expand Down
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ2FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{1.35981478, 1.59402999, 0.13503034},
},
Expand Down
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ3FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{566.92680262, 664.57456923, 56.29613817},
},
Expand Down
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ4FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{
2.09958592e+000,
Expand Down
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_5_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ5FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{1.41890847, 1.54166358, 0.13503034},
},
Expand Down
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_6_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ6FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{6.42107287, 7.40537588, 0.63167125},
},
Expand Down
9 changes: 4 additions & 5 deletions pkg/problems/many/dtlz/dtlz_7_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ func TestDTLZ7FN(t *testing.T) {
{
ProblemName: "test_case_1",
x: []float64{
0.040971105531507235, 0.550373235584878,
0.6817311625009819, 0.6274478938025135, 0.9234111071427142,
0.02499901960750534, 0.136171616578574, 0.9084459589232222,
0.21089363254881652, 0.08574450529306678, 0.20551052286248087,
0.43442188671029464,
0.040971105531507235, 0.550373235584878, 0.6817311625009819,
0.6274478938025135, 0.9234111071427142, 0.02499901960750534,
0.136171616578574, 0.9084459589232222, 0.21089363254881652,
0.08574450529306678, 0.20551052286248087, 0.43442188671029464,
},
expected: []float64{0.04097111, 0.55037324, 17.32742807},
},
Expand Down

0 comments on commit 7823229

Please sign in to comment.