-
Notifications
You must be signed in to change notification settings - Fork 153
[QST] How do I get the values of the solution after calling .solve() #932
Copy link
Copy link
Closed
Description
I'm trying to understand the api and I found the following issue
The Problem class exposes the method getIncumbentSolution
| def getIncumbentValues(self, solution, vars): |
which takes a solution and the variables as an input, you can get the variables from the method
| def getVariables(self): |
| def Solve(data_model, solver_settings=None): |
Problem class
A possible fix would be for Problem.solve()
| def solve(self, settings=solver_settings.SolverSettings()): |
populate_solution or save it in a member variable like self.solutionReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels