Changeset 434 for trunk/sources/HeuristicLab.Functions
- Timestamp:
- 08/04/08 00:34:29 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Functions
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Functions/Addition.cs
r229 r434 44 44 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 45 45 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 46 AddConstraint(new SubOperatorTypeConstraint(0)); 47 AddConstraint(new SubOperatorTypeConstraint(1)); 48 AddConstraint(new SubOperatorTypeConstraint(2)); 46 49 } 47 50 -
trunk/sources/HeuristicLab.Functions/And.cs
r229 r434 40 40 : base() { 41 41 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 42 AddConstraint(new SubOperatorTypeConstraint(0)); 43 AddConstraint(new SubOperatorTypeConstraint(1)); 44 AddConstraint(new SubOperatorTypeConstraint(2)); 42 45 } 43 46 -
trunk/sources/HeuristicLab.Functions/Average.cs
r229 r434 38 38 : base() { 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 41 AddConstraint(new SubOperatorTypeConstraint(1)); 42 AddConstraint(new SubOperatorTypeConstraint(2)); 40 43 } 41 44 -
trunk/sources/HeuristicLab.Functions/Cosinus.cs
r229 r434 38 38 // must have exactly one subfunction 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Division.cs
r229 r434 50 50 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 51 51 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 52 AddConstraint(new SubOperatorTypeConstraint(0)); 53 AddConstraint(new SubOperatorTypeConstraint(1)); 54 AddConstraint(new SubOperatorTypeConstraint(2)); 52 55 } 53 56 -
trunk/sources/HeuristicLab.Functions/Equal.cs
r229 r434 38 38 : base() { 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 41 AddConstraint(new SubOperatorTypeConstraint(1)); 40 42 } 41 43 -
trunk/sources/HeuristicLab.Functions/Exponential.cs
r229 r434 38 38 // must have exactly one sub-operator 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/GreaterThan.cs
r229 r434 38 38 : base() { 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 41 AddConstraint(new SubOperatorTypeConstraint(1)); 40 42 } 41 43 public override void Accept(IFunctionVisitor visitor) { -
trunk/sources/HeuristicLab.Functions/IfThenElse.cs
r229 r434 39 39 : base() { 40 40 AddConstraint(new NumberOfSubOperatorsConstraint(3, 3)); 41 AddConstraint(new SubOperatorTypeConstraint(0)); 42 AddConstraint(new SubOperatorTypeConstraint(1)); 43 AddConstraint(new SubOperatorTypeConstraint(2)); 41 44 } 42 45 -
trunk/sources/HeuristicLab.Functions/LessThan.cs
r229 r434 38 38 : base() { 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 41 AddConstraint(new SubOperatorTypeConstraint(1)); 40 42 } 41 43 -
trunk/sources/HeuristicLab.Functions/Logarithm.cs
r229 r434 38 38 // must have exactly 1 suboperator 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Multiplication.cs
r229 r434 44 44 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 45 45 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 46 AddConstraint(new SubOperatorTypeConstraint(0)); 47 AddConstraint(new SubOperatorTypeConstraint(1)); 48 AddConstraint(new SubOperatorTypeConstraint(2)); 46 49 } 47 50 -
trunk/sources/HeuristicLab.Functions/Not.cs
r229 r434 38 38 : base() { 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Or.cs
r229 r434 39 39 : base() { 40 40 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 41 AddConstraint(new SubOperatorTypeConstraint(0)); 42 AddConstraint(new SubOperatorTypeConstraint(1)); 43 AddConstraint(new SubOperatorTypeConstraint(2)); 41 44 } 42 45 -
trunk/sources/HeuristicLab.Functions/Power.cs
r229 r434 38 38 // must have exactly 2 suboperators base ^ exponent 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 41 AddConstraint(new SubOperatorTypeConstraint(1)); 40 42 } 41 43 -
trunk/sources/HeuristicLab.Functions/Signum.cs
r229 r434 38 38 // must have exactly 1 suboperator 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Sinus.cs
r229 r434 38 38 // must have exactly 1 suboperator 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Sqrt.cs
r229 r434 38 38 // must have exactly 1 suboperator 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Subtraction.cs
r308 r434 44 44 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 45 45 AddConstraint(new NumberOfSubOperatorsConstraint(2, 3)); 46 AddConstraint(new SubOperatorTypeConstraint(0)); 47 AddConstraint(new SubOperatorTypeConstraint(1)); 48 AddConstraint(new SubOperatorTypeConstraint(2)); 46 49 } 47 50 -
trunk/sources/HeuristicLab.Functions/Tangens.cs
r229 r434 38 38 // must have exactly one suboperator 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(1, 1)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 40 41 } 41 42 -
trunk/sources/HeuristicLab.Functions/Xor.cs
r229 r434 38 38 : base() { 39 39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2)); 40 AddConstraint(new SubOperatorTypeConstraint(0)); 41 AddConstraint(new SubOperatorTypeConstraint(1)); 40 42 } 41 43
Note: See TracChangeset
for help on using the changeset viewer.