Skip to content

Commit

Permalink
rm ToDos
Browse files Browse the repository at this point in the history
  • Loading branch information
oblonski committed Apr 24, 2015
1 parent 7b578d3 commit 4757753
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface SolutionAcceptor {
*
* @param solutions collection of existing solutions
* @param newSolution new solution to be evaluated
* @return TODO
* @return true if solution accepted
*/
public boolean acceptSolution(Collection<VehicleRoutingProblemSolution> solutions, VehicleRoutingProblemSolution newSolution);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DellAmicoFixCostCalculator(final int nuOfJobs, final RouteAndActivityStat
}

@Override
public double getCosts(JobInsertionContext insertionContext) {// TODO Auto-generated method stub
public double getCosts(JobInsertionContext insertionContext) {
return calculator.getCosts(insertionContext);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public void handleJobInsertion(Job job, InsertionData iData,VehicleRoute route)

@Override
public void setNextHandler(JobInsertionHandler handler) {
// TODO Auto-generated method stub


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public JobInsertionCostsCalculatorBuilder(List<InsertionListener> insertionListe

/**
* Sets activityStates. MUST be set.
* @param stateManager TODO
* @param stateManager
*
* @return
*/
Expand Down Expand Up @@ -147,7 +147,7 @@ public JobInsertionCostsCalculatorBuilder setVehicleFleetManager(VehicleFleetMan
* Sets a flag to build a calculator based on local calculations.
*
* <p>Insertion of a job and job-activity is evaluated based on the previous and next activity.
* @param addDefaultCostCalc TODO
* @param addDefaultCostCalc
*/
public JobInsertionCostsCalculatorBuilder setLocalLevel(boolean addDefaultCostCalc){
local = true;
Expand All @@ -165,7 +165,7 @@ public JobInsertionCostsCalculatorBuilder setActivityInsertionCostsCalculator(Ac
*
* @param forwardLooking
* @param memory
* @param addDefaultMarginalCostCalc TODO
* @param addDefaultMarginalCostCalc
*/
public JobInsertionCostsCalculatorBuilder setRouteLevel(int forwardLooking, int memory, boolean addDefaultMarginalCostCalc){
local = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public ConstraintsStatus fulfilled(JobInsertionContext iFacts, TourActivity prev
routingCosts.getBackwardTransportTime(newAct.getLocation(),nextActLocation,latestArrTimeAtNextAct,iFacts.getNewDriver(),iFacts.getNewVehicle())
- newAct.getOperationTime()
);
//ToDo: SUSPICIOUS - hier muss noch operation time weg

/*
* |--- prevAct ---|
* |--- vehicle's arrival @newAct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ public static interface Parameter {
* @param tourAct
* @param arrivalTime is actually the arrival time at this tourActivity, which must not nessecarrily be the operation start time. If the theoretical earliest
* operation start time at this activity is later than actualStartTime, the driver must wait at this activity.
* @param driver TODO
* @param vehicle TODO
* @param earliestStartTime, this is the practical earliest operation start time which considers also previous activities.
* @param latestStartTime, this is the practical latest operation start time which consider also future activities in the tour.
* @param driver
* @param vehicle
*
* if earliestStartTime > latestStartTime activity operations cannot be conducted within the given time-window.
* @return
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ public void testAlgo(){
readDemandQuantities(vrpBuilder);
readDistances(matrixBuilder);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ public void testAlgo(){
readDemandQuantities(vrpBuilder);
readDistances(matrixBuilder);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@ public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolu

@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}

@Override
public void addModuleListener(
SearchStrategyModuleListener moduleListener) {
// TODO Auto-generated method stub


}
};
strat.addModule(mod);
Expand Down Expand Up @@ -114,15 +112,13 @@ public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolu

@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}

@Override
public void addModuleListener(
SearchStrategyModuleListener moduleListener) {
// TODO Auto-generated method stub


}
};
SearchStrategyModule mod2 = new SearchStrategyModule() {
Expand All @@ -135,15 +131,13 @@ public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolu

@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}

@Override
public void addModuleListener(
SearchStrategyModuleListener moduleListener) {
// TODO Auto-generated method stub


}
};
strat.addModule(mod);
Expand Down Expand Up @@ -181,15 +175,13 @@ public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolu

@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}

@Override
public void addModuleListener(
SearchStrategyModuleListener moduleListener) {
// TODO Auto-generated method stub


}
};
strat.addModule(mod);
Expand Down Expand Up @@ -225,15 +217,13 @@ public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolu

@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}

@Override
public void addModuleListener(
SearchStrategyModuleListener moduleListener) {
// TODO Auto-generated method stub


}
};
strat.addModule(mod);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,32 +191,27 @@ public void testTypedMap4(){

@Override
public Collection<Job> ruin(Collection<VehicleRoute> vehicleRoutes) {
// TODO Auto-generated method stub
return null;
}

@Override
public Collection<Job> ruin(Collection<VehicleRoute> vehicleRoutes,
Job targetJob, int nOfJobs2BeRemoved) {
// TODO Auto-generated method stub
return null;
}

@Override
public void addListener(RuinListener ruinListener) {
// TODO Auto-generated method stub


}

@Override
public void removeListener(RuinListener ruinListener) {
// TODO Auto-generated method stub


}

@Override
public Collection<RuinListener> getListeners() {
// TODO Auto-generated method stub
return null;
}

Expand All @@ -232,17 +227,15 @@ public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolu

@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}

@Override
public void addModuleListener(
SearchStrategyModuleListener moduleListener) {
// TODO Auto-generated method stub


}
};;;
};

typedMap.put(accKey, acceptor);
typedMap.put(moduleKey, stratModule);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public double getBackwardTransportTime(Location from, Location to,double arrival
@Override
public double getBackwardTransportCost(Location from, Location to,
double arrivalTime, Driver driver, Vehicle vehicle) {
// TODO Auto-generated method stub
return 0;
}

Expand All @@ -53,7 +52,6 @@ public double getTransportCost(Location from, Location to,
@Override
public double getTransportTime(Location from, Location to,
double departureTime, Driver driver, Vehicle vehicle) {
// TODO Auto-generated method stub
return 0;
}
};
Expand All @@ -75,7 +73,6 @@ public double getBackwardTransportTime(Location from, Location to,double arrival
@Override
public double getBackwardTransportCost(Location from, Location to,
double arrivalTime, Driver driver, Vehicle vehicle) {
// TODO Auto-generated method stub
return 0;
}

Expand All @@ -90,7 +87,6 @@ public double getTransportCost(Location from, Location to,
@Override
public double getTransportTime(Location from, Location to,
double departureTime, Driver driver, Vehicle vehicle) {
// TODO Auto-generated method stub
return 0;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
import jsprit.core.problem.VehicleRoutingProblem.Builder;
import jsprit.core.problem.job.Shipment;
import jsprit.core.problem.solution.route.activity.TimeWindow;
import jsprit.core.problem.vehicle.Vehicle;
import jsprit.core.problem.vehicle.VehicleImpl;
import jsprit.core.problem.vehicle.VehicleTypeImpl;
import jsprit.core.util.Coordinate;
import jsprit.core.util.Locations;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down Expand Up @@ -186,7 +184,6 @@ private void readShipments(String file) {
}
reader.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public TSPLIB95Reader(VehicleRoutingProblem.Builder vrpBuilder) {

public void read(String filename){
BufferedReader reader = getBufferedReader(filename);
String line;
String line_;
Coordinate[] coords = null;
int[] demands = null;
Integer capacity = null;
Expand All @@ -61,7 +61,8 @@ public void read(String filename){
int dimensions = 0;
int coordIndex = 0;
Map<Integer,Integer> indexMap = new HashMap<Integer, Integer>();
while( ( line = getLine(reader) ) != null ){
while( ( line_ = getLine(reader) ) != null ){
String line = line_.trim();
if(line.startsWith("EOF") || line.contains("EOF")){
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ private static double getBestKnown(String file) {
reader.close();
return result;
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return 0;
Expand All @@ -79,7 +77,7 @@ private static String getInstanceNu(int i) {
* Returns a collection of {@link BenchmarkInstance} which are Cordeau's pr instances.
* <p>Note that this assumes that within the folder 'inputFolder' 10 p-instances are located with their original name, i.e. pr01,pr02,...,pr10.
* <p>It also assumes that solution files are also located in inputFolder ending with .res
* @param inputFolder TODO
* @param inputFolder
* @param inputFolder where cordeau's pr instances are located. It must end without '/' such as instances/cordeau.
*
* @return a collection of {@link BenchmarkInstance}
Expand Down Expand Up @@ -185,7 +183,7 @@ public static Collection<BenchmarkInstance> getAllSolomonR1(String inputFolder){
* Returns a collection of {@link BenchmarkInstance} which are Solomon instances.
* <p>Note that this assumes that within the folder 'inputFolder' 11 R1-instances are located with their original name, i.e. R201.txt,R202.txt,...,R111.txt.
* <p>Note that unlike the original problems, a fixed-cost value of 1000 is set for each employed vehicle.
* @param inputFolder TODO
* @param inputFolder
* @param inputFolder where solomon R2 instances are located. It must end without '/' such as instances/solomon.
* @return a collection of {@link BenchmarkInstance}
*/
Expand Down Expand Up @@ -228,7 +226,7 @@ public static Collection<BenchmarkInstance> getAllSolomonRC1(String inputFolder)
* Returns a collection of {@link BenchmarkInstance} which are Solomon instances.
* <p>Note that this assumes that within the folder 'inputFolder' 8 RC2-instances are located with their original name, i.e. RC201.txt,RC202.txt,...,RC208.txt.
* <p>Note that unlike the original problems, a fixed-cost value of 1000 is set for each employed vehicle.
* @param inputFolder TODO
* @param inputFolder
* @param inputFolder where solomon RC2 instances are located. It must end without '/' such as instances/solomon.
* @return a collection of {@link BenchmarkInstance}
*/
Expand Down

0 comments on commit 4757753

Please sign in to comment.