Changeset 16941
- Timestamp:
- 05/11/19 07:53:16 (6 years ago)
- Location:
- branches/2994-AutoDiffForIntervals
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2994-AutoDiffForIntervals/HeuristicLab.Algorithms.DataAnalysis.ConstrainedNonlinearRegression/3.4/ConstrainedNonlinearRegression.cs
r16831 r16941 250 250 } 251 251 var intervalConstraints = problemData.IntervalConstraints; 252 var dataIntervals = problemData.VariableRanges. VariableIntervals;252 var dataIntervals = problemData.VariableRanges.GetIntervals(); 253 253 254 254 // convert constants to variables named theta... … … 362 362 alglib.minnlcstate state; 363 363 alglib.minnlcreport rep; 364 alglib.optguardreport optGuardRep;364 //alglib.optguardreport optGuardRep; 365 365 var x0 = thetaValues.ToArray(); 366 366 367 367 alglib.minnlccreate(x0.Length, x0, out state); 368 368 alglib.minnlcsetalgoslp(state); // SLP is more robust but slower 369 alglib.minnlcsetcond(state, 0, maxIterations);369 alglib.minnlcsetcond(state, 1E-6, maxIterations); 370 370 var s = Enumerable.Repeat(1d, x0.Length).ToArray(); // scale is set to unit scale 371 371 alglib.minnlcsetscale(state, s); … … 374 374 alglib.minnlcsetnlc(state, 0, constraintTrees.Count); 375 375 376 alglib.minnlcoptguardsmoothness(state);377 alglib.minnlcoptguardgradient(state, 0.001);376 // alglib.minnlcoptguardsmoothness(state); 377 // alglib.minnlcoptguardgradient(state, 0.001); 378 378 379 379 alglib.minnlcoptimize(state, calculate_jacobian, null, null); 380 380 alglib.minnlcresults(state, out double[] xOpt, out rep); 381 alglib.minnlcoptguardresults(state, out optGuardRep);381 // alglib.minnlcoptguardresults(state, out optGuardRep); 382 382 383 383 var interpreter = new SymbolicDataAnalysisExpressionTreeLinearInterpreter(); -
branches/2994-AutoDiffForIntervals/HeuristicLab.Algorithms.DataAnalysis.ConstrainedNonlinearRegression/3.4/HeuristicLab.Algorithms.DataAnalysis.ConstrainedNonlinearRegression-3.4.csproj
r16696 r16941 48 48 <SpecificVersion>False</SpecificVersion> 49 49 <HintPath>..\..\..\..\trunk\bin\ALGLIB-3.15.0.dll</HintPath> 50 <Private>False</Private> 50 51 </Reference> 51 52 <Reference Include="System" /> … … 149 150 <Project>{f4539fb6-4708-40c9-be64-0a1390aea197}</Project> 150 151 <Name>HeuristicLab.Random-3.3</Name> 152 <Private>False</Private> 151 153 </ProjectReference> 152 154 </ItemGroup> -
branches/2994-AutoDiffForIntervals/HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Extensions/ConstrainedConstantOptimizationEvaluator.cs
r16915 r16941 225 225 226 226 var intervalConstraints = problemData.IntervalConstraints; 227 var dataIntervals = problemData.VariableRanges. VariableIntervals;227 var dataIntervals = problemData.VariableRanges.GetIntervals(); 228 228 229 229 // convert constants to variables named theta... -
branches/2994-AutoDiffForIntervals/HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Extensions/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Extensions.csproj
r16914 r16941 122 122 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project> 123 123 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 124 <Private>False</Private> 124 125 </ProjectReference> 125 126 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.