예제 #1
0
        public void Start(string fileInput, string fileOutput, int timeLimit)
        {
            QAPInstance instance = new QAPInstance(fileInput);

            int[] assignment = QAPUtils.GRCSolution(instance, 1.0);
            QAPUtils.LocalSearch2OptFirst(instance, assignment);
            QAPSolution solution = new QAPSolution(instance, assignment);

            solution.Write(fileOutput);
        }
 protected override void Improve(int[] solution)
 {
     QAPUtils.LocalSearch2OptFirst(Instance, solution);
 }
예제 #3
0
 protected override void LocalSearch(int[] individual)
 {
     QAPUtils.LocalSearch2OptFirst(Instance, individual);
 }
예제 #4
0
 public override void LocalSearch(int[] solution)
 {
     QAPUtils.LocalSearch2OptFirst(Instance, solution);
 }