Skip to content

Commit

Permalink
chore(jssp): disable max duration stop condition (#450)
Browse files Browse the repository at this point in the history
- Clippy
- Disable max duration stop condition

<!-- If applicable - remember to add the PR to the EA Rust project (ONLY
IF THERE IS NO LINKED ISSUE) -->

## Description

<!-- Please describe the motivation & changes introduced by this PR -->

## Linked issues

<!-- Please use "Resolves #<issue_no> syntax in case this PR should be
linked to an issue -->

## Important implementation details

<!-- if any, optional section -->
  • Loading branch information
kkafar authored Oct 22, 2023
1 parent cd3522a commit 2a1093f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/jssp/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn run_with_ecrs(instance: JsspInstance, _args: Args) {
.set_replacement_operator(JsspReplacement::new(JsspPopProvider::new(instance), 0.1, 0.2))
.set_fitness(JsspFitness::new())
.set_probe(probe)
.set_max_duration(std::time::Duration::from_secs(30))
// .set_max_duration(std::time::Duration::from_secs(30))
.set_max_generation_count(400)
.set_population_size(pop_size)
.build();
Expand Down
2 changes: 1 addition & 1 deletion examples/jssp/problem/fitness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl JsspFitness {
highest_priority = JsspFitness::op_priority(indv, op.id);
}
});
return op_id_with_highest_priority;
op_id_with_highest_priority
}

fn local_search(&mut self, indv: &mut JsspIndividual) -> usize {
Expand Down

0 comments on commit 2a1093f

Please sign in to comment.