Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Algorithms.DataAnalysis.Experimental;
|
---|
3 | using HeuristicLab.Algorithms.GeneticAlgorithm;
|
---|
4 | using HeuristicLab.SequentialEngine;
|
---|
5 | using Microsoft.VisualStudio.TestTools.UnitTesting;
|
---|
6 |
|
---|
7 | namespace 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.