Пример #1
0
def Solver_SolveWithProto(model_request: "operations_research::MPModelRequest const &", response: "operations_research::MPSolutionResponse *") -> "operations_research::MPSolutionResponse *":
    r"""
    Solves the model encoded by a MPModelRequest protocol buffer and fills the
    solution encoded as a MPSolutionResponse.

    Note(user): This creates a temporary MPSolver and destroys it at the end.
    If you want to keep the MPSolver alive (for debugging, or for incremental
    solving), you should write another version of this function that creates
    the MPSolver object on the heap and returns it.
    """
    return _pywraplp.Solver_SolveWithProto(model_request, response)
Пример #2
0
def Solver_SolveWithProto(
    model_request: 'operations_research::MPModelRequest const &',
    response: 'operations_research::MPSolutionResponse *'
) -> "operations_research::MPSolutionResponse *":
    return _pywraplp.Solver_SolveWithProto(model_request, response)