public void LoadsBestKnownResults() { var bestResults = new BestResultsLoader(); var results = bestResults.LoadBestResults("../../../../instances/best_known_results"); Assert.Equal(27, results.Count); }
public void AssignsBestKnownResults() { var bestResults = new BestResultsLoader(); var results = bestResults.LoadBestResults("../../../best_results"); Assert.Equal(1, results.Count); var instance = GetInstance(); var instanceBestResult = bestResults.GetBestResultForInstance(instance.Name); Assert.Equal(100u, instanceBestResult); }
static void Main(string[] args) { var resultsSaver = new CSVOneFileResultSaver() { SaveDirectory = "results" }; var bestResults = new BestResultsLoader(); bestResults.LoadBestResults($"../instances/{bestInstancesFilename}"); var instances = new [] { "br17", "ft53", "ft70", "ftv33", // "ftv170", "kro124p", // "rbg323", // "rbg443", "ry48p" }; instances.ToList() .AsParallel() .ForAll(x => { new Program() .UseInstance(x) .UseBestResults(bestResults) .PrepareExperiments() .RunExperiments() .CompareSolutions() .SaveResults(resultsSaver); } ); Program.PrepareRaport(resultsSaver.SaveDirectory, resultsSaver.Extension, "../Raport/plots"); }
public Experiment UseBestResultsLoader(BestResultsLoader resultsLoader) { this.bestResultsLoader = resultsLoader; return(this); }
public Program UseBestResults(BestResultsLoader bestResults) { this.bestResults = bestResults; return(this); }