8586878889909192939495
toRemove.push(arc); } } } } it.dispose(); } iter.dispose(); } }
589590591592593594595596597598599
if (cost < result) result = cost; } it.dispose(); for (int r : resources) { result -= pf.spft[sourceIndex][r]; } if (result < 0) ;// System.err.println("STR");
617618619620621622623624625626627
cost += pf.spfs[origId][r] + GArcs.originalCost[arcId][r] + pf.spft[destId][r]; } if (cost < result) result = cost; } it.dispose(); return result; } private int[] minmax = new int[2];
642643644645646647648649650651652
if (cost < minmax[0]) minmax[0] = cost; if (cost > minmax[1]) minmax[1] = cost; } it.dispose(); return minmax; } public double[] getInstantiatedLayerCosts(int layer) { StoredIndexedBipartiteSetWithOffset couche = layers[layer];
650651652653654655656657658659660
public double[] getInstantiatedLayerCosts(int layer) { StoredIndexedBipartiteSetWithOffset couche = layers[layer]; DisposableIntIterator it = couche.getIterator(); int node = it.next(); it.dispose(); it = GNodes.outArcs[node].getIterator(); int arcId = it.next(); it.dispose(); return GArcs.originalCost[arcId]; }
653654655656657658659660661662663
DisposableIntIterator it = couche.getIterator(); int node = it.next(); it.dispose(); it = GNodes.outArcs[node].getIterator(); int arcId = it.next(); it.dispose(); return GArcs.originalCost[arcId]; } public int getMinPathCost(int... resources) { int result = 0;
233234235236237238239240241242243
GNodes.lpfs.quickSet(q, otherL); GNodes.prevLP.quickSet(q, arc); } } it.dispose(); } }
259260261262263264265266267268269
if (otherL > GNodes.lpft.quickGet(q)) { GNodes.lpft.quickSet(q, otherL); GNodes.nextLP.quickSet(q, arc); } } it.dispose(); } } // System.out.println(GNodes.lpfs.get(end)); // System.out.println(GNodes.lpft.get(start));
343344345346347348349350351352353
temp2 = arcId; } } it.dispose(); double old = GNodes.spft.quickSet(nid, tempPval); GNodes.nextSP.quickSet(nid, tempP); double old2 = GNodes.lpft.quickSet(nid, tempPval2); GNodes.nextLP.quickSet(nid, temp2);
370371372373374375376377378379380
|| tempPval2 + lpfs + acost < propagator.getVar(starts.length).getLB())) { setInStack(arcId); toRemove.push(arcId); } } it.dispose(); } }