Пример #1
0
        // horizon equal to 2 weeks (in minutes).
        public FactoryDescription(int nbTools, int nbLocations, int nbTaskPerCycle,
                                  int horizon = 14 *24 *60)
        {
            Debug.Assert(nbTools > 0);
            Debug.Assert(nbLocations > 0);
            Debug.Assert(nbTaskPerCycle > 0);
            Debug.Assert(horizon > 0);
            NbTaskPerCycle = nbTaskPerCycle;
            Inspection     = NbTaskPerCycle - 1;
            Tools          = new Tool[nbTools];
            Horizon        = horizon;
            for (int i = 0; i < nbTools; i++)
            {
                Tools[i] = new Tool(i);
            }
            Locations = new WorkLocation[nbLocations];
            for (int i = 0; i < nbLocations; i++)
            {
                Locations[i] = new WorkLocation(i);
            }

            InspectionStarts = new long[] { -1, 600, 1200, 1800, 2400, 2800 };
        }
Пример #2
0
  // horizon equal to 2 weeks (in minutes).
  public FactoryDescription(int nbTools, int nbLocations, int nbTaskPerCycle,
                            int horizon = 14*24*60) {
    Debug.Assert(nbTools > 0);
    Debug.Assert(nbLocations > 0);
    Debug.Assert(nbTaskPerCycle > 0);
    Debug.Assert(horizon > 0);
    NbTaskPerCycle = nbTaskPerCycle;
    Inspection = NbTaskPerCycle - 1;
    Tools = new Tool[nbTools];
    Horizon = horizon;
    for (int i = 0; i < nbTools; i++)
      Tools[i] = new Tool(i);
    Locations = new WorkLocation[nbLocations];
    for (int i = 0; i < nbLocations; i++)
      Locations[i] = new WorkLocation(i);

    InspectionStarts = new long[] { -1, 600, 1200, 1800, 2400, 2800 };
  }