This updates the layout of the loops within the mixed subproblem class, from the commit:
Provides a generator function that yields the required combinations of
indices and values across the variable and response sets. Also adds the
__getitem__ and __setitem__ methods such that the subproblems can be
accessed by indexing directly on the class instances, e.g. self[i, j]
compared to self.subproblems[i, j].
This might make the code a bit more readable, as it reduces the double loops in most functions and makes the statements a little bit more concise.
Maybe @artofscience and @Giannis1993 can do a review to see if it should be merged or not.
This updates the layout of the loops within the mixed subproblem class, from the commit:
Provides a generator function that yields the required combinations of indices and values across the variable and response sets. Also adds the
__getitem__
and__setitem__
methods such that the subproblems can be accessed by indexing directly on the class instances, e.g.self[i, j]
compared toself.subproblems[i, j]
.This might make the code a bit more readable, as it reduces the double loops in most functions and makes the statements a little bit more concise.
Maybe @artofscience and @Giannis1993 can do a review to see if it should be merged or not.