Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/14 17:08:24 (9 years ago)
Author:
mkommend
Message:

#2174: Adapted permutation encoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs

    r11561 r11575  
    211211      var permEnc = encoding as PermutationEncoding;
    212212      if (permEnc != null) {
    213         var l = new ValueParameter<IntValue>(permEnc.Name + "Length", permEnc.Length);
     213        var l = new ValueParameter<IntValue>(permEnc.Name + "Length", new IntValue(permEnc.Length));
    214214        DynamicEncodingParameters.Add(l);
    215215
     
    217217        creator.PermutationParameter.ActualName = permEnc.Name;
    218218        creator.LengthParameter.ActualName = l.Name;
    219         creator.PermutationTypeParameter.Value = permEnc.Type;
     219        creator.PermutationTypeParameter.Value = new PermutationType(permEnc.Type);
    220220        return creator;
    221221      }
Note: See TracChangeset for help on using the changeset viewer.