OFEC logo OFEC

Class view

template<typename VariableEncoding = variable_vector<real>, 
         typename ObjetiveType = real>
class solution : public solution_base

Link: real variable_vector

Data member

Name Type Utility
m_var VariableEncoding Decision variables
m_obj vector<ObjectiveType> Objective values
m_constraint_value vector<real> The constraint violation

Member function

Name Utility
initialize() Call the problem instance to initialize the decision variables
evaluate(effective=true, caller=caller:Algorithm) Call the problem instance to calculate the objective values and the constraint violation
dominate(s) Return whether or not the solution dominates the passed solution