Last change
on this file since 17842 was
16831,
checked in by gkronber, 6 years ago
|
#2994: made required changes to work with current trunk
|
File size:
764 bytes
|
Rev | Line | |
---|
[16697] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using HeuristicLab.Problems.DataAnalysis;
|
---|
| 4 | using Microsoft.VisualStudio.TestTools.UnitTesting;
|
---|
| 5 | using HeuristicLab.Algorithms.DataAnalysis;
|
---|
| 6 | using HeuristicLab.Random;
|
---|
| 7 |
|
---|
| 8 | namespace 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();
|
---|
[16831] | 15 | // problemData.IntervalConstraints.Value = new ParsedConstraint(
|
---|
| 16 | // @"y in [0 .. 100]
|
---|
| 17 | // ∂y/∂x in ]-inf. .. 0]
|
---|
| 18 | // ", problemData);
|
---|
[16697] | 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.