Skip to content

Commit

Permalink
Fixed typo in NSGA3 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
s-simoncelli committed Aug 10, 2024
1 parent a7ac0b0 commit cf8b72c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optirustic/examples/nsga3_dtlz1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let crossover_operator_options = SimulatedBinaryCrossoverArgs {
distribution_index: 30.0,
crossover_probability: 1.0,
..SimulatedBinaryCrossoverArgs::Default()
..SimulatedBinaryCrossoverArgs::default()
};

// Set up the NSGA3 algorithm
Expand Down
2 changes: 1 addition & 1 deletion optirustic/examples/nsga3_dtlz2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let crossover_operator_options = SimulatedBinaryCrossoverArgs {
distribution_index: 30.0,
crossover_probability: 1.0,
..SimulatedBinaryCrossoverArgs::Default()
..SimulatedBinaryCrossoverArgs::default()
};

// Set up the NSGA3 algorithm
Expand Down

0 comments on commit cf8b72c

Please sign in to comment.