Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/17 12:14:18 (6 years ago)
Author:
abeham
Message:

#2747: worked on the CFSAP

  • merged HeuristicLab.Problems.Instances from trunk
  • updated best known qualities
  • reduced memory footprint of run
  • added convergence graph result to solving strategy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CFSAP/HeuristicLab.Problems.Scheduling.CFSAP/3.3/MultiNestCFSAP.cs

    r15460 r15472  
    4141      : base(original, cloner) { }
    4242    public MultiNestCFSAP() {
    43       Parameters.Add(new ValueParameter<ItemList<IntMatrix>>("ProcessingTimes", "The processing times of each nest, each machine, each job."));
    44       Parameters.Add(new ValueParameter<ItemList<ItemList<IntMatrix>>>("SetupTimes", "The sequence dependent set up times for each nest, each machine, and each job to each other."));
     43      Parameters.Add(new ValueParameter<ItemList<IntMatrix>>("ProcessingTimes", "The processing times of each nest, each machine, each job.") { GetsCollected = false });
     44      Parameters.Add(new ValueParameter<ItemList<ItemList<IntMatrix>>>("SetupTimes", "The sequence dependent set up times for each nest, each machine, and each job to each other.") { GetsCollected = false });
    4545
    4646      ProcessingTimesParameter.Value = new ItemList<IntMatrix>() {
     
    6969      Encoding.Add(new PermutationEncoding("seq0", 5, PermutationTypes.RelativeDirected));
    7070      Encoding.Add(new BinaryVectorEncoding("assign0", 5));
     71
     72      EncodingParameter.GetsCollected = false;
     73      foreach (var param in ((IEncoding)Encoding).Parameters.OfType<IValueParameter>().ToList()) {
     74        param.GetsCollected = false;
     75      }
    7176
    7277      Operators.RemoveAll(x => x is SingleObjectiveMoveGenerator);
     
    124129        Encoding.Add(new BinaryVectorEncoding("assign" + n, data.Jobs));
    125130      }
     131
     132      #region Reduce run size by removing collected parameters
     133      foreach (var param in ((IEncoding)Encoding).Parameters.OfType<IValueParameter>().ToList())
     134        param.GetsCollected = false;
     135
     136      var solCreator = SolutionCreator as IParameterizedItem;
     137      if (solCreator != null) {
     138        foreach (var param in solCreator.Parameters.OfType<IValueParameter>().ToList()) {
     139          param.GetsCollected = false;
     140          var secondLevel = param.Value as IParameterizedItem;
     141          if (secondLevel != null) {
     142            foreach (var secondLevelParam in secondLevel.Parameters.OfType<IValueParameter>().ToList())
     143              secondLevelParam.GetsCollected = false;
     144          }
     145        }
     146      }
     147      #endregion
     148
    126149      Name = data.Name;
    127150      Description = data.Description;
Note: See TracChangeset for help on using the changeset viewer.