Fix failing constraint() call before optimize()
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.
Showing with 12 additions and 2 deletions