Skip to content

Commit

Permalink
oops I forgot to update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xgillard committed Feb 22, 2024
1 parent a29694c commit b2e68bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Problem for Knapsack {
}
ret
}
fn transition_cost(&self, _state: &Self::State, dec: Decision) -> isize {
fn transition_cost(&self, _state: &Self::State, _next: &Self::State, dec: Decision) -> isize {
self.profit[dec.variable.id()] as isize * dec.value
}

Expand Down Expand Up @@ -337,6 +337,7 @@ please cite:
```

## Changelog
+ Version 2.0.0 gives the transition_cost function an access to the target state which is reached by applying the given transition
+ Version 0.3.0 adds a cutoff mechanism which may force the solver to stop trying to prove the optimum. Some return types have been adapted to take that possibility into account.

## References
Expand Down

0 comments on commit b2e68bf

Please sign in to comment.