evalgo.algorithms
Class IterativeSmarterPolynomialAlgorithm
java.lang.Object
evalgo.algorithms.AbstractAlgorithm
evalgo.algorithms.IterativeSmarterPolynomialAlgorithm
- public class IterativeSmarterPolynomialAlgorithm
- extends AbstractAlgorithm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostRelFactor
public double hostRelFactor
hostMemFactor
public double hostMemFactor
compFreqFactor
public double compFreqFactor
compMemFactor
public double compMemFactor
numOfMappedHosts
int numOfMappedHosts
numOfMappedComps
int numOfMappedComps
avgMemPerComp
double avgMemPerComp
avgMemPerHost
double avgMemPerHost
numIterations
int numIterations
historyAvail
double[] historyAvail
IterativeSmarterPolynomialAlgorithm
public IterativeSmarterPolynomialAlgorithm(int en,
int ka,
int numIt)
execute
public AlgorithmResult execute()
- Specified by:
execute in class AbstractAlgorithm
findNextBestComp
private int findNextBestComp(int[] currentlyMapped,
double maxMem,
int currentHost,
int[] previousMapping)
findNextBestHost
private int findNextBestHost(int[] currentlyMappedHosts)
findMaxFreqOfComps
public double findMaxFreqOfComps()
findMaxRelOfHosts
public double findMaxRelOfHosts()
findMaxFreqOfUnmappedComps
public double findMaxFreqOfUnmappedComps(int[] currentlyMapped)
findMaxMemOfUnmappedComps
public double findMaxMemOfUnmappedComps(int[] currentlyMapped)
findMaxRelOfUnmappedHosts
public double findMaxRelOfUnmappedHosts(int[] currentlyMappedHosts)
findMaxMemOfUnmappedHosts
public double findMaxMemOfUnmappedHosts(int[] currentlyMappedHosts)
findMax
public int findMax(double[] a,
int length)
findMin
public int findMin(double[] a,
int length)