Changeset 9698
- Timestamp:
- 07/05/13 12:37:42 (11 years ago)
- Location:
- branches/HeuristicLab.ExternalEvaluation Scientific
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ExternalEvaluation.Matlab/3.3/HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3.csproj
r9690 r9698 163 163 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 164 164 </Content> 165 <Content Include="Mathworks Interop License.txt" /> 165 <Content Include="Mathworks Interop License.txt"> 166 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 167 </Content> 166 168 </ItemGroup> 167 169 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ExternalEvaluation.Matlab/3.3/MatlabParameterVectorEvaluator.cs
r9690 r9698 22 22 using System; 23 23 using System.IO; 24 using System.Linq; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 98 99 var parameterVector = ParameterVectorParameter.ActualValue; 99 100 var parameterNames = ParameterNamesParameter.ActualValue; 101 if (parameterNames.Any(string.IsNullOrEmpty)) throw new ArgumentException("Not all parameter names are provided."); 100 102 101 103 for (int i = 0; i < ProblemSizeParameter.ActualValue.Value; i++) { -
branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ExternalEvaluation.Scilab/3.3/ScilabParameterVectorEvaluator.cs
r9690 r9698 22 22 using System; 23 23 using System.IO; 24 using System.Linq; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 89 90 var parameterVector = ParameterVectorParameter.ActualValue; 90 91 var parameterNames = ParameterNamesParameter.ActualValue; 92 if (parameterNames.Any(string.IsNullOrEmpty)) throw new ArgumentException("Not all parameter names are provided."); 91 93 var scilab = DotNetScilab.Scilab.Instance; 92 94 -
branches/HeuristicLab.ExternalEvaluation Scientific/HeuristicLab.Problems.ParameterOptimization/3.3/ParameterOptimizationProblem.cs
r9682 r9698 128 128 Bounds.ToStringChanged += Bounds_ToStringChanged; 129 129 ProblemSizeParameter.Value.ValueChanged += ProblemSize_Changed; 130 ParameterNames.Reset += ParameterNames_Reset; 130 131 } 131 132 … … 154 155 UpdateStrategyVectorBounds(); 155 156 } 156 pr ivatevoid UpdateStrategyVectorBounds() {157 protected virtual void UpdateStrategyVectorBounds() { 157 158 DoubleMatrix strategyBounds = (DoubleMatrix)Bounds.Clone(); 158 159 for (int i = 0; i < strategyBounds.Rows; i++) { … … 163 164 } 164 165 165 pr ivatevoid ProblemSize_Changed(object sender, EventArgs e) {166 protected virtual void ProblemSize_Changed(object sender, EventArgs e) { 166 167 if (ParameterNames.Length != ProblemSize) 167 168 ((IStringConvertibleArray)ParameterNames).Length = ProblemSize; … … 170 171 } 171 172 } 173 174 protected virtual void ParameterNames_Reset(object sender, EventArgs e) { 175 ProblemSize = ParameterNames.Length; 176 } 172 177 } 173 178 }
Note: See TracChangeset
for help on using the changeset viewer.