Last change
on this file since 12290 was
12099,
checked in by gkronber, 10 years ago
|
#2283: name for all problems (for output), new unit test, and added testsettings file
|
File size:
631 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Problems.GrammaticalOptimization {
|
---|
8 | // represents a grammatical optimization problem
|
---|
9 | public interface IProblem {
|
---|
10 | string Name { get; }
|
---|
11 | double BestKnownQuality(int maxLen);
|
---|
12 | IGrammar Grammar { get; }
|
---|
13 | double Evaluate(string sentence);
|
---|
14 | string CanonicalRepresentation(string phrase); // canonical state must use correct syntax (must be a valid input for evaluate)
|
---|
15 | IEnumerable<Feature> GetFeatures(string phrase);
|
---|
16 | }
|
---|
17 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.