231232233234235236237238239240241
points -= (iUpdatePoints ? ns.getPoints() : ns.getBonus()); if (points <= 0) break; } } Neighbour n = ns.selectNeighbour(solution); if (n != null) return n; } }
261262263264265266267268269270271
ns = (NeighbourSelector)e.nextElement(); points -= (iUpdatePoints?ns.getPoints():ns.getBonus()); if (points<=0) break; } } Neighbour n = ns.selectNeighbour(solution); if (n!=null) return n; } } private double prob(double value) {