Differences From Artifact [4f0d0c5b61]:
- File src/mcf/problem.rs — part of check-in [736a0d7893] at 2021-06-30 09:43:58 on branch mcf-trait — mmcf: allow to select network flow solver when reading mnetgen instances (user: fifr size: 18035) [more...]
To Artifact [4c23583ac2]:
- File src/mcf/problem.rs — part of check-in [e3b961e889] at 2021-06-30 12:22:12 on branch trunk — mcf/problem: remove unneeded `&` (user: fifr size: 18034)
| ︙ | ︙ | |||
476 477 478 479 480 481 482 |
.iter()
.map(|&cidx| {
subdatas
.iter()
.enumerate()
.map(|(fidx, sub)| {
let primal = state.aggregated_primal(fidx);
| | | 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 |
.iter()
.map(|&cidx| {
subdatas
.iter()
.enumerate()
.map(|(fidx, sub)| {
let primal = state.aggregated_primal(fidx);
sub.evaluate_constraint(primal, cidx)
})
.sum::<Real>()
})
.enumerate()
.filter_map(|(i, sg)| if sg < 1e-3 { Some(i) } else { None })
.collect::<Vec<_>>()
};
|
| ︙ | ︙ |