Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
solve_mp_model.h
Go to the documentation of this file.
1// Copyright 2010-2024 Google LLC
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// Functions for solving optimization models defined by MPModelRequest.
15//
16// See linear_solver.proto for further documentation.
17
18#ifndef OR_TOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
19#define OR_TOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
20
21#include <string>
22
23#include "ortools/linear_solver/linear_solver.pb.h"
26
27namespace operations_research {
28
44MPSolutionResponse SolveMPModel(LazyMutableCopy<MPModelRequest> request,
45 const SolveInterrupter* interrupter = nullptr);
46
47bool SolverTypeSupportsInterruption(MPModelRequest::SolverType solver);
48
49// Gives some brief (a few lines, at most) human-readable information about
50// the given request, suitable for debug logging.
51std::string MPModelRequestLoggingInfo(const MPModelRequest& request);
52
53} // namespace operations_research
54
55#endif // OR_TOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
In SWIG mode, we don't want anything besides these top-level includes.
MPSolutionResponse SolveMPModel(LazyMutableCopy< MPModelRequest > request, const SolveInterrupter *interrupter)
bool SolverTypeSupportsInterruption(const MPModelRequest::SolverType solver)
std::string MPModelRequestLoggingInfo(const MPModelRequest &request)