moead_framework.solution.one_dimension_solution.OneDimensionSolution¶
-
class
moead_framework.solution.one_dimension_solution.
OneDimensionSolution
(decision_vector, f=None)[source]¶ Bases:
moead_framework.solution.base.Solution
Represent a one dimension solution for combinatorial and numerical problems
-
__init__
(decision_vector, f=None)[source]¶ Constructor of the solution
- Parameters
decision_vector – {list} all decision variables of the solution
f – {list<float>} all objectives values of the solution. The default value is None if the solution is not evaluated.
Methods
__init__
(decision_vector[, f])Constructor of the solution
Attributes
{list} all objectives values of the solution.
{integer} optional - can be used to compute a distance (crowding distance, …)
{list} all decision variables of the solution.
-
F
: List[float] = []¶ {list} all objectives values of the solution.
-
distance
= 0¶ {integer} optional - can be used to compute a distance (crowding distance, …)
-
solution
: List[float] = []¶ {list} all decision variables of the solution.
-