| 259 | } |
| 260 | |
| 261 | template <CostEvaluatable T> Cost CostEvaluator::cost(T const &arg) const |
| 262 | { |
| 263 | // Penalties are zero when the solution is feasible, so we can fall back to |
| 264 | // penalised cost in that case. |
| 265 | return arg.isFeasible() ? penalisedCost(arg) |
| 266 | : std::numeric_limits<Cost>::max(); |
| 267 | } |
| 268 | |
| 269 | template <bool exact, |
| 270 | bool skipLoad, |