/* 問題ファイル読み込み */ private void loadProblem(String filename) { this.problem = new Problem.Problem(filename); board1.BaseMap = this.problem.Map; board2.BaseMap = this.problem.Map; board4.BaseMap = this.problem.Map; board3.BaseMap = this.problem.Map; printLog("問題ファイルをロード"); }
public GeneticPeriodicTabu(Problem.Problem problem, GeneticPeriodicTabuParameters parameters) { Problem = problem; Genetic = new GaTtp1(problem, parameters.GeneticParameters); var tabuParameters = new TabuParameters { NeighbourhoodSize = parameters.TabuParameters.NeighbourhoodSize, NumAlgorithmIterations = 1, NumTabuSearches = parameters.TabuParameters.NumTabuSearches, TabuSize = parameters.TabuParameters.TabuSize, }; Parameters = parameters; Parameters.TabuParameters = tabuParameters; Tabu = new TabuTtp1(problem, tabuParameters); }
public GaThenSaTtp1(Problem.Problem problem, GaThenSATtp1Parameters parameters) { Problem = problem; Genetic = new GaTtp1(problem, parameters.GeneticParameters); var annealingParams = new AnnealingParameters { InitialTemperature = parameters.AnnealingParameters.InitialTemperature, NeighbourhoodSize = parameters.AnnealingParameters.NeighbourhoodSize, NumAlgorithmIterations = 1, NumAnnealingCycles = parameters.AnnealingParameters.NumAnnealingCycles, TemperaturePercentageDropPerCycle = parameters.AnnealingParameters.TemperaturePercentageDropPerCycle, }; Parameters = parameters; Parameters.AnnealingParameters = annealingParams; Annealing = new AnnealingTtp1(problem, annealingParams); }
public GaTtp1(Problem.Problem problem, GaParameters parameters) : base(problem, parameters) { }
public IActionResult FromProblem(Problem.Problem problem) { return(StatusCode((int)problem.StatusCode, problem)); }
/* 問題ファイル読み込み */ private void loadProblem(String filename) { this.problem = new Problem.Problem(filename); board1.BaseMap = this.problem.Map; board2.BaseMap = this.problem.Map; board4.BaseMap = this.problem.Map; board3.BaseMap = this.problem.Map; printLog("問題ファイルをロード"); }
public TabuTtp1(Problem.Problem problem, TabuParameters parameters) { Problem = problem; Parameters = parameters; RandomNumGenerator = new Random(); }
public AnnealingTtp1(Problem.Problem problem, AnnealingParameters parameters) { Problem = problem; Parameters = parameters; RandomNumGenerator = new Random(); }
protected Ga(Problem.Problem problem, GaParameters parameters) { Problem = problem; Parameters = parameters; RandomNumGenerator = new Random(); }