Last change
on this file since 16342 was
13180,
checked in by pfleck, 9 years ago
|
#1674
- ProtoBuff QualityMessages
- Changed the QualityMessage to be able to be used for single- and multi-objective problems.
- The new SingleObjectiveQualityMessage and MultiObjectiveQualityMessage now "inherits" from QualityMessages to be able to be used in a polymorph manner.
- This is done via protobuf's nested extensions (see http://www.indelible.org/ink/protobuf-polymorphism/).
- EvaluationCache
- The EvaluationCache now now stores the QualityMessage instead of a single double.
This way the cache can be used for single- and multi-objective problems and additionally opens the possibility to extend the quality message with any data. (previously extended data was lost when the cache was persisted and loaded again)
- When deserializing an older version of the cache a new single objective quality message is created from the double value.
This way, no compatibility is broken and version must not be incremented.
- Adapted the ExternalEvaluationProblem to the changes of the EvaluationCache and the QualityMessage.
- Added a MultiObjectiveExternalEvaluationProblem on basis of the ExternalEvaluationProblem and added a IExternalEvaluationProblem interface.
|
File size:
1.3 KB
|
Line | |
---|
1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using Google.ProtocolBuffers;
|
---|
23 | using HeuristicLab.Core;
|
---|
24 | using HeuristicLab.Optimization;
|
---|
25 |
|
---|
26 | namespace HeuristicLab.Problems.ExternalEvaluation {
|
---|
27 | public interface IExternalEvaluationProblem : IProblem {
|
---|
28 |
|
---|
29 | EvaluationCache Cache { get; }
|
---|
30 | CheckedItemCollection<IEvaluationServiceClient> Clients { get; }
|
---|
31 |
|
---|
32 | QualityMessage Evaluate(SolutionMessage solutionMessage);
|
---|
33 | ExtensionRegistry GetQualityMessageExtensions();
|
---|
34 | }
|
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.