public AntSystemParallelOptimisation(Random rnd, OptionsParallelOptimisation options, IGraph graph)
        {
            _rnd     = rnd;
            _graph   = graph;
            _options = options;

            AntSystemFragments = new WeightedAntSystemFragment[options.NumberOfInterSections];
            for (var i = 0; i < options.NumberOfInterSections; i++)
            {
                AntSystemFragments[i] = new WeightedAntSystemFragment(rnd, options, graph);
            }
        }
        public AntSystemParallelOptimisationWithInheritance(Random rnd, OptionsParallelOptimisation options, IGraph graph, WeightedAntSystemFragment previousBestFragment)
        {
            _rnd     = rnd;
            _graph   = graph;
            _options = options;

            AntSystemFragments = new WeightedAntSystemFragment[options.NumberOfInterSections];

            short index = 0;

            if (previousBestFragment != null)
            {
                AntSystemFragments[0] = previousBestFragment;
                index = 1;
            }

            for (; index < options.NumberOfInterSections; index++)
            {
                AntSystemFragments[index] = new WeightedAntSystemFragment(rnd, options, _graph);
            }
        }
 public AspgParallelOptimisationWithInheritance(OptionsParallelOptimisation options, IGraph graph, Random rnd)
     : base(options, graph, rnd)
 {
 }
示例#4
0
 public AspgParallelOptimisation(OptionsParallelOptimisation options, IGraph graph, Random rnd)
     : base(options, graph, rnd)
 {
 }