|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ucl.poms.repository.IGPWO.IGPWO
public class IGPWO
This class implements the integration of IGPWO (UCL/IAG/POMS). IGPWO is the optimizer for IGP link weights.
Creation date: 10-Dec-2004
Constructor Summary | |
---|---|
IGPWO()
|
Method Summary | |
---|---|
TotemActionList |
calculateWeights(int ASID,
int[] TMID)
|
TotemActionList |
calculateWeightsParameters(int ASID,
int[] TMID,
int num_iters,
int w_max)
|
TotemActionList |
calculateWeightsParameters(int ASID,
int[] TMID,
int num_iters,
int w_max,
boolean random,
int seed,
double min_samp_rate,
double max_samp_rate,
double init_samp_rate)
|
java.util.HashMap |
getRunningParameters()
Returns the parameters given when the algorithm was started |
java.util.List<ParameterDescriptor> |
getStartAlgoParameters()
Returns the optional parameters that can be given when starting the algorithm |
void |
invalidateDB()
Tells the algo that the database is not up-to-date |
boolean |
isDBValid()
return true if the local DB is up-to-date |
static void |
jniaddArc(int index,
int new_id,
int new_headnode,
int new_tailnode,
double new_capacity)
|
static void |
jniaddCommodity(int matrix_index,
int new_dstnode,
int new_srcnode,
double demandValue)
|
static void |
jniaddNode(int index,
int new_id)
|
static double[] |
jnicalculateWeights()
|
static double[] |
jnicalculateWeightsParameters(int num_iteration,
int w_max,
int random_initial,
int seed,
double min_samp_rate,
double max_samp_rate,
double init_samp_rate,
double[] initialWeights)
|
static void |
jniinitDBGraph(int num_nodes,
int num_arcs)
Calculates optimal weights for IGP weights given a traffic demand matrix. |
static void |
jniinitDBTrafficMatrix(int num_nodes,
int num_tm)
|
static void |
jnikillIGPWO()
|
void |
restart()
restarts the algorithm with the same parameters |
void |
start(java.util.HashMap params)
Used to start and initialize the algorithm |
void |
stop()
Used to stop the algorithm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IGPWO()
Method Detail |
---|
public static void jniinitDBGraph(int num_nodes, int num_arcs)
public static void jniinitDBTrafficMatrix(int num_nodes, int num_tm)
public static double[] jnicalculateWeights() throws java.lang.Exception
java.lang.Exception
public static double[] jnicalculateWeightsParameters(int num_iteration, int w_max, int random_initial, int seed, double min_samp_rate, double max_samp_rate, double init_samp_rate, double[] initialWeights) throws java.lang.Exception
java.lang.Exception
public static void jniaddArc(int index, int new_id, int new_headnode, int new_tailnode, double new_capacity) throws AddDBException
AddDBException
public static void jniaddNode(int index, int new_id) throws AddDBException
AddDBException
public static void jniaddCommodity(int matrix_index, int new_dstnode, int new_srcnode, double demandValue) throws AddDBException
AddDBException
public static void jnikillIGPWO() throws java.lang.Exception
java.lang.Exception
public void start(java.util.HashMap params) throws AlgorithmInitialisationException
TotemAlgorithm
start
in interface TotemAlgorithm
AlgorithmInitialisationException
public TotemActionList calculateWeights(int ASID, int[] TMID) throws java.lang.Exception
calculateWeights
in interface IGPWeightOptimization
java.lang.Exception
public void stop()
TotemAlgorithm
stop
in interface TotemAlgorithm
public TotemActionList calculateWeightsParameters(int ASID, int[] TMID, int num_iters, int w_max) throws java.lang.Exception
java.lang.Exception
public TotemActionList calculateWeightsParameters(int ASID, int[] TMID, int num_iters, int w_max, boolean random, int seed, double min_samp_rate, double max_samp_rate, double init_samp_rate) throws java.lang.Exception
java.lang.Exception
public java.util.List<ParameterDescriptor> getStartAlgoParameters()
TotemAlgorithm
getStartAlgoParameters
in interface TotemAlgorithm
public java.util.HashMap getRunningParameters()
TotemAlgorithm
getRunningParameters
in interface TotemAlgorithm
public boolean isDBValid()
DomainSyncAlgorithm
isDBValid
in interface DomainSyncAlgorithm
public void invalidateDB()
DomainSyncAlgorithm
invalidateDB
in interface DomainSyncAlgorithm
public void restart()
DomainSyncAlgorithm
restart
in interface DomainSyncAlgorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |