Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
so much dupplicated code, this is disgusting.
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 14:20:01 +0000 (16:20 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 14:20:04 +0000 (16:20 +0200)
commit290104ced7828265239183fa04c2da15a6f28af2
tree7693a3d22063487f8abacf95286f80e804b18570
parentba5e509f6ff4c2d1ef9cb834e3275e43610d28f6
so much dupplicated code, this is disgusting.

The existing code was dealing specifically with the first matching
action to initialize the minimum. I just update the value
inconditionnaly when it's still at its initial value.

We should use numeric_limits<double>::max() instead of -1 as an
initial value, but we return it when no action can be found, and I
don't feel like fixing the expectations of all calling code here.
src/surf/surf_interface.cpp