Optimization, Operations Research, Python, Programming, Data Science.
pyo.Set(initialize=self.params.jobs) def _construct_params(self): self.p = pyo.Param(self.M, self.J, initialize=self.params.p_times) self.V = sum(self.p[key] for key in self.p) One can notice the sets of jobs J and machines M are stored in the instance attributes of the same name. The attribute p