Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18155 for branches


Ignore:
Timestamp:
12/17/21 15:50:51 (3 years ago)
Author:
dpiringe
Message:

#3136

  • merged trunk into branch
Location:
branches/3136_Structural_GP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP

  • branches/3136_Structural_GP/HeuristicLab.Optimization

  • branches/3136_Structural_GP/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiEncodingOperator.cs

    r17180 r18155  
    3131namespace HeuristicLab.Optimization {
    3232  [StorableType("43619638-9D00-4951-8138-8CCD0786E784")]
    33   public abstract class MultiEncodingOperator<T> : Operator, IMultiEncodingOperator where T : class,IOperator {
     33  public abstract class MultiEncodingOperator<T> : Operator, IMultiEncodingOperator where T : class, IOperator {
    3434    private List<IEncoding> encodings = new List<IEncoding>();
    3535    [Storable(Name = "Encodings")]
     
    7171
    7272    public override IOperation Apply() {
    73       var operations = Parameters.Select(p => p.ActualValue).OfType<IOperator>().Select(op => ExecutionContext.CreateChildOperation(op));
     73      var operators = Parameters.OrderBy(p => p.Name).Select(p => p.ActualValue).OfType<IOperator>();
     74      var operations = operators.Select(op => ExecutionContext.CreateChildOperation(op));
    7475      return new OperationCollection(operations);
    7576    }
Note: See TracChangeset for help on using the changeset viewer.