Last change
on this file since 13402 was
12893,
checked in by gkronber, 9 years ago
|
#2283: experiments on grammatical optimization algorithms (maxreward instead of avg reward, ...)
|
File size:
739 bytes
|
Rev | Line | |
---|
[11659] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
[11846] | 5 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
|
---|
[11659] | 6 |
|
---|
| 7 | namespace HeuristicLab.Problems.GrammaticalOptimization {
|
---|
[11846] | 8 | // represents a grammatical optimization problem
|
---|
[11659] | 9 | public interface IProblem {
|
---|
[12099] | 10 | string Name { get; }
|
---|
[11732] | 11 | double BestKnownQuality(int maxLen);
|
---|
[11659] | 12 | IGrammar Grammar { get; }
|
---|
[11793] | 13 | double Evaluate(string sentence);
|
---|
[12893] | 14 | bool IsOptimalPhrase(string phrase); // determines if the phrase can be derived to an optimal solution
|
---|
[11832] | 15 | string CanonicalRepresentation(string phrase); // canonical state must use correct syntax (must be a valid input for evaluate)
|
---|
| 16 | IEnumerable<Feature> GetFeatures(string phrase);
|
---|
[11659] | 17 | }
|
---|
| 18 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.