Exemple #1
0
 public void RunSiemens1Test()
 {
     FAPModelFactory factory = new FAPModelFactory();
     Console.Write("Creating model siemens1 problem");
     FAPModel model = factory.CreateSiemens1Model();
     Console.WriteLine(" ... Done");
     Console.Write("Loading assignment for siemens1");
     model.LoadTestData(@"..\..\FAP\Problems\siemens1.ass");
     Console.WriteLine(" ... Done");
     FAPCostFunction costFunction = new FAPCostFunction(model);
     Console.Write("Calculating total amount of interference");
     double interference = costFunction.Evaluate(model.Cells);
     Console.WriteLine(" ... Done");
     Console.WriteLine("Total Interference: {0}", interference);
     Console.WriteLine("Projected Interference from assignment file: {0}", 2.200);
 }