Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2925_AutoDiffForDynamicalModels/AutoDiffForDynamicalModelsTest/TestGA.cs @ 16317

Last change on this file since 16317 was 16251, checked in by gkronber, 6 years ago

#2925: implemented interface to CVODES solver with forward sensitivity calculation.

File size: 555 bytes
Line 
1
2using HeuristicLab.Algorithms.GeneticAlgorithm;
3using HeuristicLab.Persistence.Default.Xml;
4using Microsoft.VisualStudio.TestTools.UnitTesting;
5
6namespace AutoDiffForDynamicalModelsTest {
7  [TestClass]
8  public class TestGA {
9    [TestMethod]
10    public void TestGAExecution() {
11      var ga = XmlParser.Deserialize<GeneticAlgorithm>("Genetic Algorithm (GA).hl");
12      var prob = (HeuristicLab.Problems.DynamicalSystemsModelling.Problem)ga.Problem;
13      prob.OdeSolver = "CVODES";
14      ga.Prepare();
15      ga.Start();
16    }
17  }
18}
Note: See TracBrowser for help on using the repository browser.