public void Start(string fileInput, string fileOutput, int timeLimit) { QAPInstance instance = new QAPInstance(fileInput); int levelLength = (int) Math.Ceiling(levelLengthFactor * (instance.NumberFacilities * (instance.NumberFacilities - 1))); DiscreteSA sa = new DiscreteSA4QAP(instance, initialSolutions, levelLength, tempReduction); sa.Run(timeLimit - timePenalty); QAPSolution solution = new QAPSolution(instance, sa.BestSolution); solution.Write(fileOutput); }
public void Start(string fileInput, string fileOutput, int timeLimit) { QAPInstance instance = new QAPInstance(fileInput); int levelLength = (int)Math.Ceiling(levelLengthFactor * (instance.NumberFacilities * (instance.NumberFacilities - 1))); DiscreteSA sa = new DiscreteSA4QAP(instance, initialSolutions, levelLength, tempReduction); sa.Run(timeLimit - timePenalty); QAPSolution solution = new QAPSolution(instance, sa.BestSolution); solution.Write(fileOutput); }