Index: branches/HiveHiveEngine/HeuristicLab.Operators/3.3/AllSubScopesIntReducer.cs
===================================================================
--- branches/HiveHiveEngine/HeuristicLab.Operators/3.3/AllSubScopesIntReducer.cs	(revision 7322)
+++ 	(revision )
@@ -1,78 +1,0 @@
-#region License Information
-/* HeuristicLab
- * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
- *
- * This file is part of HeuristicLab.
- *
- * HeuristicLab is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * HeuristicLab is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
- */
-#endregion
-
-using System.Linq;
-using HeuristicLab.Common;
-using HeuristicLab.Core;
-using HeuristicLab.Data;
-using HeuristicLab.Parameters;
-using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
-
-namespace HeuristicLab.Operators {
-  /// <summary>
-  /// An operator which increments an integer variable.
-  /// </summary>
-  [Item("AllSubScopesIntReducer", "An operator to reduce int values of sub scopes")]
-  [StorableClass]
-  public sealed class AllSubScopesIntReducer : SingleSuccessorOperator {
-
-    public ScopeTreeLookupParameter<IntValue> ParameterToReduce {
-      get { return (ScopeTreeLookupParameter<IntValue>)Parameters["ParameterToReduce"]; }
-    }
-
-    public ValueLookupParameter<StringValue> TargetParameterName {
-      get { return (ValueLookupParameter<StringValue>)Parameters["TargetParameterName"]; }
-    }
-
-    private LookupParameter<IntValue> TargetParameter {
-      get { return (LookupParameter<IntValue>)Parameters["TargetParameter"]; }
-    }
-
-    [StorableConstructor]
-    private AllSubScopesIntReducer(bool deserializing) : base(deserializing) { }
-    private AllSubScopesIntReducer(AllSubScopesIntReducer original, Cloner cloner)
-      : base(original, cloner) {
-    }
-    public AllSubScopesIntReducer()
-      : base() {
-      Parameters.Add(new ScopeTreeLookupParameter<IntValue>("ParameterToReduce", "The actual parameter defined by TargetParameterName"));
-      Parameters.Add(new ValueLookupParameter<StringValue>("TargetParameterName", "Parameter name to add the value to", new StringValue(string.Empty)));
-      Parameters.Add(new LookupParameter<IntValue>("TargetParameter", "The actual parameter defined by TargetParameterName"));
-    }
-
-    public override IDeepCloneable Clone(Cloner cloner) {
-      return new AllSubScopesIntReducer(this, cloner);
-    }
-
-    public override IOperation Apply() {
-      var intValues = ParameterToReduce.ActualValue;
-
-      if (intValues.Count() > 0) {
-        int sum = intValues.Sum(x => x.Value);
-
-        TargetParameter.ActualName = TargetParameterName.ActualValue.Value;
-        if (TargetParameter.ActualValue == null) TargetParameter.ActualValue = new IntValue();
-        TargetParameter.ActualValue.Value += sum;
-      }
-      return base.Apply();
-    }
-  }
-}
Index: branches/HiveHiveEngine/HeuristicLab.Operators/3.3/HeuristicLab.Operators-3.3.csproj
===================================================================
--- branches/HiveHiveEngine/HeuristicLab.Operators/3.3/HeuristicLab.Operators-3.3.csproj	(revision 7322)
+++ branches/HiveHiveEngine/HeuristicLab.Operators/3.3/HeuristicLab.Operators-3.3.csproj	(revision 7323)
@@ -118,7 +118,7 @@
     <Compile Include="Assigner.cs" />
     <Compile Include="AlgorithmOperator.cs" />
-    <Compile Include="AllSubScopesIntReducer.cs" />
+    <Compile Include="IntDataReducer.cs" />
+    <Compile Include="ReductionType.cs" />
     <Compile Include="ReductionTypes.cs" />
-    <Compile Include="SubScopesIntReducer.cs" />
     <Compile Include="MultiOperator.cs" />
     <Compile Include="Operator.cs" />
Index: branches/HiveHiveEngine/HeuristicLab.Operators/3.3/IntDataReducer.cs
===================================================================
--- branches/HiveHiveEngine/HeuristicLab.Operators/3.3/IntDataReducer.cs	(revision 7323)
+++ branches/HiveHiveEngine/HeuristicLab.Operators/3.3/IntDataReducer.cs	(revision 7323)
@@ -0,0 +1,98 @@
+﻿#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System;
+using System.Linq;
+using HeuristicLab.Common;
+using HeuristicLab.Core;
+using HeuristicLab.Data;
+using HeuristicLab.Parameters;
+using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
+
+namespace HeuristicLab.Operators {
+  [Item("IntDataReducer", "An operator to reduce int values of sub scopes")]
+  [StorableClass]
+  public sealed class IntDataReducer : SingleSuccessorOperator {
+    public ScopeTreeLookupParameter<IntValue> ParameterToReduce {
+      get { return (ScopeTreeLookupParameter<IntValue>)Parameters["ParameterToReduce"]; }
+    }
+    public ValueLookupParameter<StringValue> TargetParameterName {
+      get { return (ValueLookupParameter<StringValue>)Parameters["TargetParameterName"]; }
+    }
+    private LookupParameter<IntValue> TargetParameter {
+      get { return (LookupParameter<IntValue>)Parameters["TargetParameter"]; }
+    }
+    public ValueParameter<ReductionType> ReductionOperation {
+      get { return (ValueParameter<ReductionType>)Parameters["ReductionOperation"]; }
+    }
+
+    [StorableConstructor]
+    private IntDataReducer(bool deserializing) : base(deserializing) { }
+    private IntDataReducer(IntDataReducer original, Cloner cloner)
+      : base(original, cloner) {
+    }
+    public IntDataReducer()
+      : base() {
+      Parameters.Add(new ScopeTreeLookupParameter<IntValue>("ParameterToReduce", "The actual parameter defined by TargetParameterName."));
+      Parameters.Add(new ValueLookupParameter<StringValue>("TargetParameterName", "Parameter name to add the value to.", new StringValue(string.Empty)));
+      Parameters.Add(new LookupParameter<IntValue>("TargetParameter", "The actual parameter defined by TargetParameterName."));
+      Parameters.Add(new ValueParameter<ReductionType>("ReductionOperation", "The reduction operation to perform."));
+    }
+
+    public override IDeepCloneable Clone(Cloner cloner) {
+      return new IntDataReducer(this, cloner);
+    }
+
+    public override IOperation Apply() {
+      var intValues = ParameterToReduce.ActualValue;
+
+      if (intValues.Count() > 0) {
+        TargetParameter.ActualName = TargetParameterName.ActualValue.Value;
+        if (TargetParameter.ActualValue == null) TargetParameter.ActualValue = new IntValue();
+
+        int result;
+        switch (ReductionOperation.Value.Value) {
+          case ReductionTypes.Sum:
+            result = intValues.Sum(x => x.Value);
+            break;
+          case ReductionTypes.Prod:
+            result = 1;
+            intValues.ForEach(x => result *= x.Value);
+            break;
+          case ReductionTypes.Avg:
+            result = (int)Math.Round(intValues.Average(x => x.Value));
+            break;
+          case ReductionTypes.Min:
+            result = intValues.Min(x => x.Value);
+            break;
+          case ReductionTypes.Max:
+            result = intValues.Max(x => x.Value);
+            break;
+          default:
+            throw new ArgumentException("Unknown ReductionType: " + ReductionOperation.Value.Value);
+        }
+        //TODO: there should be at least a Set, Add and Mul operation
+        TargetParameter.ActualValue.Value += result;
+      }
+      return base.Apply();
+    }
+  }
+}
Index: branches/HiveHiveEngine/HeuristicLab.Operators/3.3/ReductionType.cs
===================================================================
--- branches/HiveHiveEngine/HeuristicLab.Operators/3.3/ReductionType.cs	(revision 7323)
+++ branches/HiveHiveEngine/HeuristicLab.Operators/3.3/ReductionType.cs	(revision 7323)
@@ -0,0 +1,46 @@
+﻿#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System.Drawing;
+using HeuristicLab.Common;
+using HeuristicLab.Core;
+using HeuristicLab.Data;
+using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
+
+namespace HeuristicLab.Operators {
+  [Item("ReductionType", "Represents a certain type of reduction operation.")]
+  [StorableClass]
+  public class ReductionType : ValueTypeValue<ReductionTypes> {
+    public static new Image StaticItemImage {
+      get { return HeuristicLab.Common.Resources.VSImageLibrary.Enum; }
+    }
+
+    [StorableConstructor]
+    protected ReductionType(bool deserializing) : base(deserializing) { }
+    protected ReductionType(ReductionType original, Cloner cloner) : base(original, cloner) { }
+    public ReductionType() : base() { }
+    public ReductionType(ReductionTypes type) : base(type) { }
+
+    public override IDeepCloneable Clone(Cloner cloner) {
+      return new ReductionType(this, cloner);
+    }
+  }
+}
Index: branches/HiveHiveEngine/HeuristicLab.Operators/3.3/ReductionTypes.cs
===================================================================
--- branches/HiveHiveEngine/HeuristicLab.Operators/3.3/ReductionTypes.cs	(revision 7322)
+++ branches/HiveHiveEngine/HeuristicLab.Operators/3.3/ReductionTypes.cs	(revision 7323)
@@ -23,6 +23,7 @@
   public enum ReductionTypes {
     Sum,
+    Prod,
+    Min,
     Max,
-    Min,
     Avg
   }
Index: branches/HiveHiveEngine/HeuristicLab.Operators/3.3/SubScopesIntReducer.cs
===================================================================
--- branches/HiveHiveEngine/HeuristicLab.Operators/3.3/SubScopesIntReducer.cs	(revision 7322)
+++ 	(revision )
@@ -1,82 +1,0 @@
-#region License Information
-/* HeuristicLab
- * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
- *
- * This file is part of HeuristicLab.
- *
- * HeuristicLab is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * HeuristicLab is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
- */
-#endregion
-
-using System;
-using System.Linq;
-using HeuristicLab.Common;
-using HeuristicLab.Core;
-using HeuristicLab.Data;
-using HeuristicLab.Parameters;
-using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
-
-namespace HeuristicLab.Operators {
-  /// <summary>
-  /// An operator which increments an integer variable.
-  /// </summary>
-  [Item("SubScopesIntReducer", "An operator to reduce int values of sub scopes")]
-  [StorableClass]
-  public sealed class SubScopesIntReducer : SingleSuccessorOperator {
-
-    public ScopeTreeLookupParameter<IntValue> ParameterToReduce {
-      get { return (ScopeTreeLookupParameter<IntValue>)Parameters["ParameterToReduce"]; }
-    }
-
-    public ValueLookupParameter<StringValue> TargetParameterName {
-      get { return (ValueLookupParameter<StringValue>)Parameters["TargetParameterName"]; }
-    }
-
-    private LookupParameter<IntValue> TargetParameter {
-      get { return (LookupParameter<IntValue>)Parameters["TargetParameter"]; }
-    }
-
-    [StorableConstructor]
-    private SubScopesIntReducer(bool deserializing) : base(deserializing) { }
-    private SubScopesIntReducer(SubScopesIntReducer original, Cloner cloner)
-      : base(original, cloner) {
-    }
-    public SubScopesIntReducer()
-      : base() {
-      Parameters.Add(new ScopeTreeLookupParameter<IntValue>("ParameterToReduce", "The actual parameter defined by TargetParameterName"));
-      Parameters.Add(new ValueLookupParameter<StringValue>("TargetParameterName", "Parameter name to add the value to", new StringValue(string.Empty)));
-      Parameters.Add(new LookupParameter<IntValue>("TargetParameter", "The actual parameter defined by TargetParameterName"));
-    }
-
-    public override IDeepCloneable Clone(Cloner cloner) {
-      return new SubScopesIntReducer(this, cloner);
-    }
-
-    public override IOperation Apply() {
-      var intValues = ParameterToReduce.ActualValue;
-
-      if (intValues.Count() > 0) {
-        int oneValue = intValues.First().Value;
-        if (!intValues.All(x => x.Value == oneValue)) {
-          throw new ArgumentException("All values must equal in order to be reducible.");
-        }
-
-        TargetParameter.ActualName = TargetParameterName.ActualValue.Value;
-        if (TargetParameter.ActualValue == null) TargetParameter.ActualValue = new IntValue();
-        TargetParameter.ActualValue.Value += oneValue;
-      }
-      return base.Apply();
-    }
-  }
-}
