Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2994-AutoDiffForIntervals/Tests/ConstrainedNLRTest.cs @ 16697

Last change on this file since 16697 was 16697, checked in by gkronber, 5 years ago

#2994: missing files for r16696 (+ svn:ignore)

File size: 716 bytes
Line 
1using System;
2using System.Collections.Generic;
3using HeuristicLab.Problems.DataAnalysis;
4using Microsoft.VisualStudio.TestTools.UnitTesting;
5using HeuristicLab.Algorithms.DataAnalysis;
6using HeuristicLab.Random;
7
8namespace Tests {
9  [TestClass]
10  public class ConstrainedNLRTestClass {
11    [TestMethod]
12    public void ConstrainedNLRTest() {
13      var modelStructure = "1.0*sqr(x)+1.0*x+1.0";
14      var problemData = new RegressionProblemData();
15      problemData.IntervalConstraints.Value =
16@"y in [0 .. 100]
17∂y/∂x in ]-inf. .. 0]
18";
19      var solution = ConstrainedNonlinearRegression.CreateRegressionSolution(problemData, modelStructure, 0, true, new FastRandom(1234));
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.