Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Mar 28, 2024
1 parent 8616a41 commit a2a3def
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/jssp/problem/crossover.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ecrs::{ga::individual::IndividualTrait, prelude::crossover::CrossoverOperator};
use ecrs::{ga::{individual::IndividualTrait, GAMetadata}, prelude::crossover::CrossoverOperator};
use rand::{thread_rng, Rng};

use super::individual::JsspIndividual;
Expand All @@ -18,6 +18,7 @@ impl JsspCrossover {
impl CrossoverOperator<JsspIndividual> for JsspCrossover {
fn apply(
&mut self,
_metadata: &GAMetadata,
parent_1: &JsspIndividual,
parent_2: &JsspIndividual,
) -> (JsspIndividual, JsspIndividual) {
Expand Down Expand Up @@ -60,6 +61,7 @@ impl NoopCrossover {
impl CrossoverOperator<JsspIndividual> for NoopCrossover {
fn apply(
&mut self,
_metadata: &GAMetadata,
parent_1: &JsspIndividual,
parent_2: &JsspIndividual,
) -> (JsspIndividual, JsspIndividual) {
Expand Down

0 comments on commit a2a3def

Please sign in to comment.