using System; using System.Collections.Generic; using HeuristicLab.Problems.DataAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using HeuristicLab.Algorithms.DataAnalysis; using HeuristicLab.Random; namespace Tests { [TestClass] public class ConstrainedNLRTestClass { [TestMethod] public void ConstrainedNLRTest() { var modelStructure = "1.0*sqr(x)+1.0*x+1.0"; var problemData = new RegressionProblemData(); // problemData.IntervalConstraints.Value = new ParsedConstraint( // @"y in [0 .. 100] // ∂y/∂x in ]-inf. .. 0] // ", problemData); var solution = ConstrainedNonlinearRegression.CreateRegressionSolution(problemData, modelStructure, 0, true, new FastRandom(1234)); } } }