Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/09 19:24:23 (15 years ago)
Author:
gkronber
Message:

Created a branch for #713

Location:
branches/GP-Refactoring-713
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/GP-Refactoring-713/sources/HeuristicLab.GP.Boolean/3.3/Variable.cs

    r1529 r2202  
    5151      GetVariableInfo(MANIPULATION).Local = false;
    5252
    53       AddConstraint(new NumberOfSubOperatorsConstraint(0, 0));
     53      MinArity = 0; MaxArity = 0;
    5454
    5555      ConstrainedIntData variable = new ConstrainedIntData();
     
    7575      combinedOp.OperatorGraph.InitialOperator = seq;
    7676      seq.AddSubOperator(indexRandomizer);
    77       HeuristicLab.Core.IVariable initOp = GetVariable(INITIALIZATION);
    78       if(initOp == null) {
    79         AddVariable(new HeuristicLab.Core.Variable(INITIALIZATION, combinedOp));
    80       } else {
    81         initOp.Value = combinedOp;
    82       }
     77      Initializer = combinedOp;
    8378    }
    8479
     
    9792      combinedOp.OperatorGraph.InitialOperator = seq;
    9893      seq.AddSubOperator(indexRandomizer);
    99       HeuristicLab.Core.IVariable manipulationOp = GetVariable(MANIPULATION);
    100       if(manipulationOp == null) {
    101         AddVariable(new HeuristicLab.Core.Variable(MANIPULATION, combinedOp));
    102       } else {
    103         manipulationOp.Value = combinedOp;
    104       }
     94      Manipulator = combinedOp;
    10595    }
    10696
    10797    public void SetConstraints(int[] allowedIndexes) {
    108       ConstrainedIntData index = GetVariableValue<ConstrainedIntData>(INDEX, null, false);
     98      //ConstrainedIntData index = GetVariableValue<ConstrainedIntData>(INDEX, null, false);
    10999      Array.Sort(allowedIndexes);
    110100      minIndex = allowedIndexes[0]; maxIndex = allowedIndexes[allowedIndexes.Length - 1];
Note: See TracChangeset for help on using the changeset viewer.