public AntAlgorithmChooser(Mode mode, int alpha, int beta, double q, int numOfAnts, double acsQ0, double pBest) { // TODO: intelligent switch due to parameters switch (mode) { case Mode.AntSystem: Algorithm = new ASAlgorithm(alpha, beta, q, numOfAnts); break; case Mode.AntColonySystem: Algorithm = new ACSAlgorithm(alpha, beta, q, numOfAnts, acsQ0); break; case Mode.MinMaxAntSystem: Algorithm = new MinMaxAlgorithm(alpha, beta, q, numOfAnts, pBest); break; } }
public AntAlgorithmChooser(int alpha, int beta, double q, int numOfAnts) { Algorithm = new ASAlgorithm(alpha, beta, q, numOfAnts); }