Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Problems.GrammaticalOptimization/Interfaces/IProblem.cs @ 12893

Last change on this file since 12893 was 12893, checked in by gkronber, 9 years ago

#2283: experiments on grammatical optimization algorithms (maxreward instead of avg reward, ...)

File size: 739 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
6
7namespace 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    bool IsOptimalPhrase(string phrase); // determines if the phrase can be derived to an optimal solution
15    string CanonicalRepresentation(string phrase); // canonical state must use correct syntax (must be a valid input for evaluate)
16    IEnumerable<Feature> GetFeatures(string phrase);
17  }
18}
Note: See TracBrowser for help on using the repository browser.