Changeset 3048 for trunk/sources/HeuristicLab.Encodings.BinaryVectors
- Timestamp:
- 03/15/10 23:49:54 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorCreator.cs
r3043 r3048 37 37 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 38 38 } 39 public ILookupParameter<BoolArray Data> BinaryVectorParameter {40 get { return (ILookupParameter<BoolArray Data>)Parameters["BinaryVector"]; }39 public ILookupParameter<BoolArray> BinaryVectorParameter { 40 get { return (ILookupParameter<BoolArray>)Parameters["BinaryVector"]; } 41 41 } 42 public IValueLookupParameter<Int Data> LengthParameter {43 get { return (IValueLookupParameter<Int Data>)Parameters["Length"]; }42 public IValueLookupParameter<IntValue> LengthParameter { 43 get { return (IValueLookupParameter<IntValue>)Parameters["Length"]; } 44 44 } 45 45 … … 47 47 : base() { 48 48 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 49 Parameters.Add(new LookupParameter<IntArray Data>("BinaryVector", "The vector which should be manipulated."));50 Parameters.Add(new ValueLookupParameter<Int Data>("Length", "The length of the vector."));49 Parameters.Add(new LookupParameter<IntArray>("BinaryVector", "The vector which should be manipulated.")); 50 Parameters.Add(new ValueLookupParameter<IntValue>("Length", "The length of the vector.")); 51 51 } 52 52 … … 56 56 } 57 57 58 protected abstract BoolArray Data Create(IRandom random, IntDatalength);58 protected abstract BoolArray Create(IRandom random, IntValue length); 59 59 } 60 60 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorCrossover.cs
r3043 r3048 37 37 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 38 38 } 39 public ILookupParameter<ItemArray<BoolArray Data>> ParentsParameter {40 get { return (SubScopesLookupParameter<BoolArray Data>)Parameters["Parents"]; }39 public ILookupParameter<ItemArray<BoolArray>> ParentsParameter { 40 get { return (SubScopesLookupParameter<BoolArray>)Parameters["Parents"]; } 41 41 } 42 public ILookupParameter<BoolArray Data> ChildParameter {43 get { return (ILookupParameter<BoolArray Data>)Parameters["Child"]; }42 public ILookupParameter<BoolArray> ChildParameter { 43 get { return (ILookupParameter<BoolArray>)Parameters["Child"]; } 44 44 } 45 45 … … 47 47 : base() { 48 48 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators.")); 49 Parameters.Add(new SubScopesLookupParameter<IntArray Data>("Parents", "The parent vectors which should be crossed."));50 Parameters.Add(new LookupParameter<IntArray Data>("Child", "The child vector resulting from the crossover."));49 Parameters.Add(new SubScopesLookupParameter<IntArray>("Parents", "The parent vectors which should be crossed.")); 50 Parameters.Add(new LookupParameter<IntArray>("Child", "The child vector resulting from the crossover.")); 51 51 } 52 52 … … 56 56 } 57 57 58 protected abstract BoolArray Data Cross(IRandom random, ItemArray<BoolArrayData> parents);58 protected abstract BoolArray Cross(IRandom random, ItemArray<BoolArray> parents); 59 59 } 60 60 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorManipulator.cs
r3043 r3048 37 37 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 38 38 } 39 public ILookupParameter<BoolArray Data> BinaryVectorParameter {40 get { return (ILookupParameter<BoolArray Data>)Parameters["BinaryVector"]; }39 public ILookupParameter<BoolArray> BinaryVectorParameter { 40 get { return (ILookupParameter<BoolArray>)Parameters["BinaryVector"]; } 41 41 } 42 42 … … 44 44 : base() { 45 45 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 46 Parameters.Add(new LookupParameter<IntArray Data>("BinaryVector", "The vector which should be manipulated."));46 Parameters.Add(new LookupParameter<IntArray>("BinaryVector", "The vector which should be manipulated.")); 47 47 } 48 48 … … 52 52 } 53 53 54 protected abstract void Manipulate(IRandom random, BoolArray DatabinaryVector);54 protected abstract void Manipulate(IRandom random, BoolArray binaryVector); 55 55 } 56 56 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/HeuristicLab.Encodings.BinaryVectors-3.3.csproj
r3040 r3048 32 32 <ErrorReport>prompt</ErrorReport> 33 33 <WarningLevel>4</WarningLevel> 34 </PropertyGroup> 35 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> 36 <DebugSymbols>true</DebugSymbols> 37 <OutputPath>bin\x64\Debug\</OutputPath> 38 <DefineConstants>DEBUG;TRACE</DefineConstants> 39 <DebugType>full</DebugType> 40 <PlatformTarget>x64</PlatformTarget> 41 <ErrorReport>prompt</ErrorReport> 42 </PropertyGroup> 43 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> 44 <OutputPath>bin\x64\Release\</OutputPath> 45 <DefineConstants>TRACE</DefineConstants> 46 <Optimize>true</Optimize> 47 <DebugType>pdbonly</DebugType> 48 <PlatformTarget>x64</PlatformTarget> 49 <ErrorReport>prompt</ErrorReport> 50 </PropertyGroup> 51 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 52 <DebugSymbols>true</DebugSymbols> 53 <OutputPath>bin\x86\Debug\</OutputPath> 54 <DefineConstants>DEBUG;TRACE</DefineConstants> 55 <DebugType>full</DebugType> 56 <PlatformTarget>x86</PlatformTarget> 57 <ErrorReport>prompt</ErrorReport> 58 </PropertyGroup> 59 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 60 <OutputPath>bin\x86\Release\</OutputPath> 61 <DefineConstants>TRACE</DefineConstants> 62 <Optimize>true</Optimize> 63 <DebugType>pdbonly</DebugType> 64 <PlatformTarget>x86</PlatformTarget> 65 <ErrorReport>prompt</ErrorReport> 34 66 </PropertyGroup> 35 67 <ItemGroup> -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorCreator.cs
r3042 r3048 29 29 /// </summary> 30 30 public interface IBinaryVectorCreator : IBinaryVectorOperator, ISolutionCreator { 31 IValueLookupParameter<Int Data> LengthParameter { get; }32 ILookupParameter<BoolArray Data> BinaryVectorParameter { get; }31 IValueLookupParameter<IntValue> LengthParameter { get; } 32 ILookupParameter<BoolArray> BinaryVectorParameter { get; } 33 33 } 34 34 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorCrossover.cs
r3040 r3048 29 29 /// </summary> 30 30 public interface IBinaryVectorCrossover : IBinaryVectorOperator, ICrossover { 31 ILookupParameter<ItemArray<BoolArray Data>> ParentsParameter { get; }32 ILookupParameter<BoolArray Data> ChildParameter { get; }31 ILookupParameter<ItemArray<BoolArray>> ParentsParameter { get; } 32 ILookupParameter<BoolArray> ChildParameter { get; } 33 33 } 34 34 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorManipulator.cs
r3042 r3048 29 29 /// </summary> 30 30 public interface IBinaryVectorManipulator : IBinaryVectorOperator, IManipulator { 31 ILookupParameter<BoolArray Data> BinaryVectorParameter { get; }31 ILookupParameter<BoolArray> BinaryVectorParameter { get; } 32 32 } 33 33 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Tests/Auxiliary.cs
r3040 r3048 25 25 namespace HeuristicLab.Encodings.IntVector_33.Tests { 26 26 public static class Auxiliary { 27 public static bool BoolVectorIsEqualByPosition(BoolArray Data p1, BoolArrayDatap2) {27 public static bool BoolVectorIsEqualByPosition(BoolArray p1, BoolArray p2) { 28 28 bool equal = (p1.Length == p2.Length); 29 29 if (equal) { -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Tests/HeuristicLab.Encodings.BinaryVectors-3.3.Tests.csproj
r3040 r3048 30 30 <ErrorReport>prompt</ErrorReport> 31 31 <WarningLevel>4</WarningLevel> 32 </PropertyGroup> 33 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> 34 <DebugSymbols>true</DebugSymbols> 35 <OutputPath>bin\x64\Debug\</OutputPath> 36 <DefineConstants>DEBUG;TRACE</DefineConstants> 37 <DebugType>full</DebugType> 38 <PlatformTarget>x64</PlatformTarget> 39 <ErrorReport>prompt</ErrorReport> 40 </PropertyGroup> 41 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> 42 <OutputPath>bin\x64\Release\</OutputPath> 43 <DefineConstants>TRACE</DefineConstants> 44 <Optimize>true</Optimize> 45 <DebugType>pdbonly</DebugType> 46 <PlatformTarget>x64</PlatformTarget> 47 <ErrorReport>prompt</ErrorReport> 48 </PropertyGroup> 49 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 50 <DebugSymbols>true</DebugSymbols> 51 <OutputPath>bin\x86\Debug\</OutputPath> 52 <DefineConstants>DEBUG;TRACE</DefineConstants> 53 <DebugType>full</DebugType> 54 <PlatformTarget>x86</PlatformTarget> 55 <ErrorReport>prompt</ErrorReport> 56 </PropertyGroup> 57 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 58 <OutputPath>bin\x86\Release\</OutputPath> 59 <DefineConstants>TRACE</DefineConstants> 60 <Optimize>true</Optimize> 61 <DebugType>pdbonly</DebugType> 62 <PlatformTarget>x86</PlatformTarget> 63 <ErrorReport>prompt</ErrorReport> 32 64 </PropertyGroup> 33 65 <ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.