Free cookie consent management tool by TermsFeed Policy Generator

Changeset 468


Ignore:
Timestamp:
08/08/08 19:30:05 (16 years ago)
Author:
gkronber
Message:

ironed out a few more problems (#237 FunctionLibraryInjector that injects default function libraries with a few parameters)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Functions/Variable.cs

    r467 r468  
    188188        prev = allowedIndexes[i];
    189189      }
     190      IntBoundedConstraint range = new IntBoundedConstraint();
     191      range.LowerBound = start;
     192      range.LowerBoundEnabled = true;
     193      range.LowerBoundIncluded = true;
     194      range.UpperBound = prev;
     195      range.UpperBoundEnabled = true;
     196      range.UpperBoundIncluded = true;
     197      constraints.Add(range);
    190198      if(constraints.Count > 1) {
    191199        OrConstraint or = new OrConstraint();
  • trunk/sources/HeuristicLab.StructureIdentification/FunctionLibraryInjector.cs

    r467 r468  
    7474      for(int i = 0; i < allowedIndexes.Length; i++) {
    7575        allowedIndexes[i] = allowedFeatures[i].Data;
    76         i++;
    7776      }
    7877
     
    8180
    8281      scope.AddVariable(new Variable(scope.TranslateName(OPERATORLIBRARY), operatorLibrary));
    83 
    8482      return null;
    8583    }
  • trunk/sources/HeuristicLab.StructureIdentification/GPOperatorGroup.cs

    r432 r468  
    5656        if(c is SubOperatorTypeConstraint || c is AllSubOperatorsTypeConstraint) c.Changed += new EventHandler(UpdateTreeBounds);
    5757      }
     58      RecalculateMinimalTreeBounds();
    5859      OnOperatorAdded(op);
    5960    }
Note: See TracChangeset for help on using the changeset viewer.