Index: DamEngine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs
===================================================================
diff -u -r3522 -r3617
--- DamEngine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs (.../ConversionHelper.cs) (revision 3522)
+++ DamEngine/trunk/src/Deltares.DamEngine.Interface/ConversionHelper.cs (.../ConversionHelper.cs) (revision 3617)
@@ -597,6 +597,11 @@
public const int InputSearchMethodGenetic = 1;
///
+ /// The input search method BeeSwarm
+ ///
+ public const int InputSearchMethodBeeSwarm = 2;
+
+ ///
/// Converts to input search method.
///
/// The search method.
@@ -606,7 +611,8 @@
var translationTable = new Dictionary()
{
{MStabSearchMethod.Grid, InputSearchMethodGrid},
- {MStabSearchMethod.GeneticAlgorithm, InputSearchMethodGenetic}
+ {MStabSearchMethod.GeneticAlgorithm, InputSearchMethodGenetic},
+ {MStabSearchMethod.BeeSwarm, InputSearchMethodBeeSwarm}
};
return translationTable[searchMethod];
}
@@ -621,7 +627,8 @@
var translationTable = new Dictionary()
{
{InputSearchMethodGrid, MStabSearchMethod.Grid},
- {InputSearchMethodGenetic, MStabSearchMethod.GeneticAlgorithm}
+ {InputSearchMethodGenetic, MStabSearchMethod.GeneticAlgorithm},
+ {InputSearchMethodBeeSwarm, MStabSearchMethod.BeeSwarm}
};
return translationTable[searchMethod];
}