at.ftw.repository.reopt
Class FTWReopt
java.lang.Object
at.ftw.repository.reopt.FTWReopt
public class FTWReopt
- extends java.lang.Object
This class runs the Reopt (FTW, Vienna) algorithm.
Creation date: 09-mai-2005
- Author:
- Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)
Constructor Summary |
FTWReopt()
|
FTWReopt(java.lang.String dataFile,
java.lang.String resultFile)
|
FTWReopt(java.lang.String dataFile,
java.lang.String resultFile,
java.lang.String cplexRunFile)
|
Method Summary |
TotemActionList<SetLspReservationAction> |
calculateInitialSolution(Domain domain,
TrafficMatrix tm,
int profit,
int changeCost)
|
void |
createCplexRunFile(boolean isInitialRun)
|
void |
createDataFile(Domain domain,
TrafficMatrix tm,
int profit,
int changeCost,
boolean isInitialDataFile)
|
TotemActionList<SetLspReservationAction> |
readCapacitiesFromResultFile(Domain domain,
java.lang.String file)
|
TotemActionList<SetLspReservationAction> |
reopt(Domain domain,
TrafficMatrix tm,
int profit,
int changeCost)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FTWReopt
public FTWReopt()
FTWReopt
public FTWReopt(java.lang.String dataFile,
java.lang.String resultFile)
FTWReopt
public FTWReopt(java.lang.String dataFile,
java.lang.String resultFile,
java.lang.String cplexRunFile)
calculateInitialSolution
public TotemActionList<SetLspReservationAction> calculateInitialSolution(Domain domain,
TrafficMatrix tm,
int profit,
int changeCost)
throws java.io.IOException,
LinkNotFoundException,
NodeNotFoundException
- Throws:
java.io.IOException
LinkNotFoundException
NodeNotFoundException
reopt
public TotemActionList<SetLspReservationAction> reopt(Domain domain,
TrafficMatrix tm,
int profit,
int changeCost)
throws java.io.IOException,
NodeNotFoundException,
LinkNotFoundException
- Throws:
java.io.IOException
NodeNotFoundException
LinkNotFoundException
createDataFile
public void createDataFile(Domain domain,
TrafficMatrix tm,
int profit,
int changeCost,
boolean isInitialDataFile)
throws java.io.IOException,
LinkNotFoundException,
NodeNotFoundException
- Throws:
java.io.IOException
LinkNotFoundException
NodeNotFoundException
createCplexRunFile
public void createCplexRunFile(boolean isInitialRun)
throws java.io.IOException
- Throws:
java.io.IOException
readCapacitiesFromResultFile
public TotemActionList<SetLspReservationAction> readCapacitiesFromResultFile(Domain domain,
java.lang.String file)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.