Esempio n. 1
0
        static void Main(string[] args)
        {
            string filePath = Console.ReadLine();

            int iterationsCount;

            if (int.TryParse(Console.ReadLine(), out iterationsCount))
            {
                Console.WriteLine("Wrong input.");
            }

            JobShop jobShop = new JobShop(filePath);
        }
 public WorkloadGeneticAlgorithm(JobShop jobshop, int iterationsCount, int adaptiveStartingPoint = 10, float crossoverProbability = 0.75f,
                                 float mutationProbability     = 0.3f, float minProbability = 0.2f, float maxProbability = 0.5f, float probabilityDecreaseRate = 1.15f,
                                 float probabilityIncreaseRate = 1.01f, int minPopulation   = 100, int maxPopulation     = 100)
 {
     this.JobShop                 = jobshop;
     this.IterationsCount         = iterationsCount;
     this.AdaptiveStartingPoint   = adaptiveStartingPoint;
     this.CrossoverProbability    = crossoverProbability;
     this.MutationProbability     = mutationProbability;
     this.ProbabilityDecreaseRate = probabilityDecreaseRate;
     this.ProbabilityIncreaseRate = probabilityIncreaseRate;
     this.MinProbability          = minProbability;
     this.MaxProbability          = maxProbability;
     this.MinPopulation           = minPopulation;
     this.MaxPopulation           = maxPopulation;
 }