- Timestamp:
- 03/05/13 16:37:17 (12 years ago)
- Location:
- branches/ImprovingStringConvertibleMatrix
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ImprovingStringConvertibleMatrix
-
Property
svn:ignore
set to
*.suo
-
Property
svn:ignore
set to
-
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r8720 r9286 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath> $(SolutionDir)\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 50 50 <DebugType>pdbonly</DebugType> 51 51 <Optimize>true</Optimize> 52 <OutputPath> $(SolutionDir)\bin\</OutputPath>52 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 53 53 <DefineConstants>TRACE</DefineConstants> 54 54 <ErrorReport>prompt</ErrorReport> … … 58 58 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> 59 59 <DebugSymbols>true</DebugSymbols> 60 <OutputPath> $(SolutionDir)\bin\</OutputPath>60 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 61 61 <DefineConstants>DEBUG;TRACE</DefineConstants> 62 62 <DebugType>full</DebugType> … … 66 66 </PropertyGroup> 67 67 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> 68 <OutputPath> $(SolutionDir)\bin\</OutputPath>68 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 69 69 <DefineConstants>TRACE</DefineConstants> 70 70 <Optimize>true</Optimize> … … 76 76 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 77 77 <DebugSymbols>true</DebugSymbols> 78 <OutputPath> $(SolutionDir)\bin\</OutputPath>78 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 79 79 <DefineConstants>DEBUG;TRACE</DefineConstants> 80 80 <DebugType>full</DebugType> … … 84 84 </PropertyGroup> 85 85 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 86 <OutputPath> $(SolutionDir)\bin\</OutputPath>86 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 87 87 <DefineConstants>TRACE</DefineConstants> 88 88 <Optimize>true</Optimize> … … 93 93 </PropertyGroup> 94 94 <ItemGroup> 95 <Reference Include="System" /> 95 <Reference Include="HeuristicLab.Collections-3.3"> 96 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 97 <Private>False</Private> 98 </Reference> 99 <Reference Include="HeuristicLab.Common-3.3"> 100 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 101 <Private>False</Private> 102 </Reference> 103 <Reference Include="HeuristicLab.Common.Resources-3.3"> 104 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 105 <Private>False</Private> 106 </Reference> 107 <Reference Include="HeuristicLab.Core-3.3"> 108 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 109 <Private>False</Private> 110 </Reference> 111 <Reference Include="HeuristicLab.Encodings.RealVectorEncoding-3.3"> 112 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Encodings.RealVectorEncoding-3.3.dll</HintPath> 113 <Private>False</Private> 114 </Reference> 115 <Reference Include="HeuristicLab.Operators-3.3"> 116 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 117 <Private>False</Private> 118 </Reference> 119 <Reference Include="HeuristicLab.Optimization.Operators-3.3"> 120 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 121 <Private>False</Private> 122 </Reference> 123 <Reference Include="HeuristicLab.Parameters-3.3"> 124 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 125 <Private>False</Private> 126 </Reference> 127 <Reference Include="HeuristicLab.Persistence-3.3"> 128 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 129 <Private>False</Private> 130 </Reference> 131 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 132 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 133 <Private>False</Private> 134 </Reference> 135 <Reference Include="System"> 136 <Private>False</Private> 137 </Reference> 96 138 <Reference Include="System.Core"> 97 139 <RequiredTargetFramework>3.5</RequiredTargetFramework> 98 </Reference> 99 <Reference Include="System.Drawing" /> 140 <Private>False</Private> 141 </Reference> 142 <Reference Include="System.Drawing"> 143 <Private>False</Private> 144 </Reference> 100 145 <Reference Include="System.Xml.Linq"> 101 146 <RequiredTargetFramework>3.5</RequiredTargetFramework> 147 <Private>False</Private> 102 148 </Reference> 103 149 <Reference Include="System.Data.DataSetExtensions"> 104 150 <RequiredTargetFramework>3.5</RequiredTargetFramework> 105 </Reference> 106 <Reference Include="System.Data" /> 107 <Reference Include="System.Xml" /> 151 <Private>False</Private> 152 </Reference> 153 <Reference Include="System.Data"> 154 <Private>False</Private> 155 </Reference> 156 <Reference Include="System.Xml"> 157 <Private>False</Private> 158 </Reference> 108 159 </ItemGroup> 109 160 <ItemGroup> … … 165 216 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project> 166 217 <Name>HeuristicLab.Analysis-3.3</Name> 167 </ProjectReference>168 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">169 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>170 <Name>HeuristicLab.Collections-3.3</Name>171 <Private>False</Private>172 </ProjectReference>173 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">174 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>175 <Name>HeuristicLab.Common.Resources-3.3</Name>176 <Private>False</Private>177 </ProjectReference>178 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">179 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>180 <Name>HeuristicLab.Common-3.3</Name>181 <Private>False</Private>182 </ProjectReference>183 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">184 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>185 <Name>HeuristicLab.Core-3.3</Name>186 218 <Private>False</Private> 187 219 </ProjectReference> … … 191 223 <Private>False</Private> 192 224 </ProjectReference> 193 <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj">194 <Project>{BB6D334A-4BB6-4674-9883-31A6EBB32CAB}</Project>195 <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name>196 <Private>False</Private>197 </ProjectReference>198 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">199 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>200 <Name>HeuristicLab.Operators-3.3</Name>201 <Private>False</Private>202 </ProjectReference>203 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">204 <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project>205 <Name>HeuristicLab.Optimization.Operators-3.3</Name>206 </ProjectReference>207 225 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 208 226 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 209 227 <Name>HeuristicLab.Optimization-3.3</Name> 210 <Private>False</Private>211 </ProjectReference>212 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">213 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>214 <Name>HeuristicLab.Parameters-3.3</Name>215 <Private>False</Private>216 </ProjectReference>217 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">218 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>219 <Name>HeuristicLab.Persistence-3.3</Name>220 <Private>False</Private>221 </ProjectReference>222 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">223 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>224 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>225 228 <Private>False</Private> 226 229 </ProjectReference> -
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r9258 r9286 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 22 25 using HeuristicLab.Analysis; 23 26 using HeuristicLab.Common; … … 29 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 33 using HeuristicLab.PluginInfrastructure; 31 using System;32 using System.Collections.Generic;33 using System.Linq;34 34 35 35 namespace HeuristicLab.Problems.TestFunctions { … … 183 183 UpdateStrategyVectorBounds(); 184 184 } 185 private void Bounds_ItemChanged(object sender, EventArgs<int, int> e) { 186 if (e.Value2 == 0 && Bounds[e.Value, 1] <= Bounds[e.Value, 0]) 187 Bounds[e.Value, 1] = Bounds[e.Value, 0] + 0.1; 188 if (e.Value2 == 1 && Bounds[e.Value, 0] >= Bounds[e.Value, 1]) 189 Bounds[e.Value, 0] = Bounds[e.Value, 1] - 0.1; 185 private void Bounds_ItemChanged(object sender, EventArgs<IEnumerable<Position>> e) { 186 foreach (var pos in e.Value) { 187 if (pos.Column == 0 && Bounds[pos.Row, 1] <= Bounds[pos.Row, 0]) 188 Bounds[pos.Row, 1] = Bounds[pos.Row, 0] + 0.1; 189 if (pos.Column == 1 && Bounds[pos.Row, 0] >= Bounds[pos.Row, 1]) 190 Bounds[pos.Row, 0] = Bounds[pos.Row, 1] - 0.1; 191 } 190 192 ParameterizeOperators(); 191 193 UpdateStrategyVectorBounds(); … … 240 242 BoundsParameter.ValueChanged += new EventHandler(BoundsParameter_ValueChanged); 241 243 Bounds.ToStringChanged += new EventHandler(Bounds_ToStringChanged); 242 Bounds.Item Changed += new EventHandler<EventArgs<int, int>>(Bounds_ItemChanged);244 Bounds.ItemsChanged += new EventHandler<EventArgs<IEnumerable<Position>>>(Bounds_ItemChanged); 243 245 SolutionCreator.RealVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_RealVectorParameter_ActualNameChanged); 244 246 Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); -
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionSolution.cs
r7259 r9286 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Drawing; 24 25 using HeuristicLab.Collections; … … 236 237 } 237 238 private void RegisterBoundsEvents() { 238 Bounds.Item Changed += new EventHandler<EventArgs<int, int>>(Bounds_ItemChanged);239 Bounds.ItemsChanged += new EventHandler<EventArgs<IEnumerable<Position>>>(Bounds_ItemChanged); 239 240 Bounds.Reset += new EventHandler(Bounds_Reset); 240 241 } 241 242 private void DeregisterBoundsEvents() { 242 Bounds.Item Changed -= new EventHandler<EventArgs<int, int>>(Bounds_ItemChanged);243 Bounds.ItemsChanged -= new EventHandler<EventArgs<IEnumerable<Position>>>(Bounds_ItemChanged); 243 244 Bounds.Reset -= new EventHandler(Bounds_Reset); 244 245 } … … 268 269 OnPopulationChanged(); 269 270 } 270 private void Bounds_ItemChanged(object sender, EventArgs< int, int> e) {271 private void Bounds_ItemChanged(object sender, EventArgs<IEnumerable<Position>> e) { 271 272 OnBoundsChanged(); 272 273 }
Note: See TracChangeset
for help on using the changeset viewer.