Exemplo n.º 1
0
    def __init__(self, decision_variables, constraints={}, encoding_rule={}):
        """
        The constructor of the Problem Template. 
        """
        self._name                      = "Problem Template"
        self._decision_variables        = decision_variables
        self._constraints               = constraints
        self._encoding_rule             = encoding_rule
        #self._objective_function_list   = []
        #self._objective_list            = []
        self._objective                 = ProblemObjective.Maximization

                # parse the encoding rule # read the encoding rules
        # member variables
        self._encoding = Encoding(encoding_rule)
Exemplo n.º 2
0
 def encoding(self, encoding_rule):
     self._encoding = Encoding(encoding_rule)