T
- the type used to store the result of the solution.
Check getResult()
for more details.public interface HeuristicSolution<T> extends Comparable<HeuristicSolution<T>>
Heuristic
implementation.
A heuristic can generate multiple solutions until find an optimal or suboptimal
solution for the problem.Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOGGER |
static HeuristicSolution |
NULL
An attribute that implements the Null Object Design Pattern for
HeuristicSolution
objects. |
Modifier and Type | Method and Description |
---|---|
double |
getCost()
Defines the cost of using this solution.
|
default double |
getFitness()
Defines how good the solution is and it the inverse of the
getCost() . |
Heuristic<HeuristicSolution<T>> |
getHeuristic() |
T |
getResult()
Gets the result of the solution.
|
compareTo
static final org.slf4j.Logger LOGGER
static final HeuristicSolution NULL
HeuristicSolution
objects.Heuristic<HeuristicSolution<T>> getHeuristic()
default double getFitness()
getCost()
.
As higher is the fitness,
better is a solution. How a solution fitness is computed is totally
dependent of the heuristic implementation being used
to find a solution.getCost()
double getCost()
getFitness()
T getResult()
Map<Cloudlet, Vm>
, that will indicate which Vm will
run each Cloudlet.
This way, the type T of the solution is totally dependent of the problem
being solved by the heuristic implementation.
The result of solution is generated by a heuristic. Getting an optimal or sub-optimal solution is the final goal of a heuristic.
Copyright © 2015–2019 Systems, Security and Image Communication Lab - Instituto de Telecomunica����es (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educa����o Ci��ncia e Tecnologia do Tocantins (IFTO). All rights reserved.