Commit 5a77bc2a authored by theochri's avatar theochri
Browse files

improved the solver_setting dictionairy handeling in the orginal code.

parent 8ba78388
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ class EHubModel:

        solver      = solver_settings["name"]
        options     = solver_settings["options"]
        solver_path = solver_settings["solver_path"]
        

        if options is None:
            options = {}
@@ -103,6 +103,7 @@ class EHubModel:
        try:
            # Use of the solver path is optional, however,
            # needed when doing cluster submission.
            solver_path = solver_settings["solver_path"]
            status = pylp.solve(objective=self.objective,
                                constraints=self.constraints,
                                minimize=True,