• Tjerk Vreeken's avatar
    Fix failing constraint() call before optimize() · b9a30ca4
    Tjerk Vreeken authored
    When using GoalProgrammingMixin, it was not possible to call constraint()
    or path_constraints() in e.g. pre(). This is because the subproblem
    constraint variables were not fully initialized yet; they were not
    indexable with "ensemble_member". Only when optimize() was called were
    the variables properly initialized.
    b9a30ca4
goal_programming_mixin.py 53.4 KB