Free cookie consent management tool by TermsFeed Policy Generator

source: branches/MathNetNumerics-Exploration-2789/Test/UnitTest1.cs @ 15313

Last change on this file since 15313 was 15313, checked in by gkronber, 7 years ago

#2789: worked on nonlinear regression with constraints

File size: 754 bytes
Line 
1using System;
2using HeuristicLab.Algorithms.DataAnalysis.Experimental;
3using HeuristicLab.Algorithms.GeneticAlgorithm;
4using HeuristicLab.SequentialEngine;
5using Microsoft.VisualStudio.TestTools.UnitTesting;
6
7namespace Test {
8  [TestClass]
9  public class UnitTest1 {
10    [TestMethod]
11    public void TestMethod1() {
12      var ga = new GeneticAlgorithm();
13      var symbReg = new HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.SymbolicRegressionSingleObjectiveProblem();
14      var eval = new SymbolicRegressionConstantOptimizationEvaluator();
15      symbReg.EvaluatorParameter.Value = eval;
16      ga.Engine = new SequentialEngine();
17      ga.Seed.Value = 1234;
18      ga.Problem = symbReg;
19
20      ga.Start();
21
22    }
23  }
24}
Note: See TracBrowser for help on using the repository browser.