コード例 #1
0
ファイル: Form.cs プロジェクト: KNCT-KPC/Bungo
        /* 問題ファイル読み込み */
        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("問題ファイルをロード");
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public GaTtp1(Problem.Problem problem, GaParameters parameters) : base(problem, parameters)
 {
 }
コード例 #5
0
 public IActionResult FromProblem(Problem.Problem problem)
 {
     return(StatusCode((int)problem.StatusCode, problem));
 }
コード例 #6
0
ファイル: Form.cs プロジェクト: KNCT-KPC/Bungo
        /* 問題ファイル読み込み */
        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("問題ファイルをロード");
        }
コード例 #7
0
 public TabuTtp1(Problem.Problem problem, TabuParameters parameters)
 {
     Problem            = problem;
     Parameters         = parameters;
     RandomNumGenerator = new Random();
 }
コード例 #8
0
 public AnnealingTtp1(Problem.Problem problem, AnnealingParameters parameters)
 {
     Problem            = problem;
     Parameters         = parameters;
     RandomNumGenerator = new Random();
 }
コード例 #9
0
ファイル: Ga.cs プロジェクト: PrzemyslawMorski/Metaheurystyki
 protected Ga(Problem.Problem problem, GaParameters parameters)
 {
     Problem            = problem;
     Parameters         = parameters;
     RandomNumGenerator = new Random();
 }