![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 157 of file solver_interface.h.
#include <solver_interface.h>
Public Member Functions | |
| AllSolversRegistry (const AllSolversRegistry &)=delete | |
| AllSolversRegistry & | operator= (const AllSolversRegistry &)=delete |
| void | Register (SolverTypeProto solver_type, SolverInterface::Factory factory) |
| absl::StatusOr< std::unique_ptr< SolverInterface > > | Create (SolverTypeProto solver_type, const ModelProto &model, const SolverInterface::InitArgs &init_args) const |
| bool | IsRegistered (SolverTypeProto solver_type) const |
| Whether a solver type is supported. | |
| std::vector< SolverTypeProto > | RegisteredSolvers () const |
| List all supported solver types. | |
| std::string | RegisteredSolversToString () const |
| Returns a human-readable list of supported solver types. | |
Static Public Member Functions | |
| static AllSolversRegistry * | Instance () |
|
delete |
| absl::StatusOr< std::unique_ptr< SolverInterface > > operations_research::math_opt::AllSolversRegistry::Create | ( | SolverTypeProto | solver_type, |
| const ModelProto & | model, | ||
| const SolverInterface::InitArgs & | init_args ) const |
Invokes the factory associated to the solver type with the provided arguments.
Definition at line 57 of file solver_interface.cc.
|
static |
Definition at line 40 of file solver_interface.cc.
| bool operations_research::math_opt::AllSolversRegistry::IsRegistered | ( | SolverTypeProto | solver_type | ) | const |
Whether a solver type is supported.
Definition at line 77 of file solver_interface.cc.
|
delete |
| void operations_research::math_opt::AllSolversRegistry::Register | ( | SolverTypeProto | solver_type, |
| SolverInterface::Factory | factory ) |
Maps the given factory to the given solver type. Calling this twice will result in an error, using static initialization is recommended, e.g. see MATH_OPT_REGISTER_SOLVER defined below.
Required: factory must be threadsafe.
Definition at line 45 of file solver_interface.cc.
| std::vector< SolverTypeProto > operations_research::math_opt::AllSolversRegistry::RegisteredSolvers | ( | ) | const |
List all supported solver types.
Definition at line 82 of file solver_interface.cc.
| std::string operations_research::math_opt::AllSolversRegistry::RegisteredSolversToString | ( | ) | const |
Returns a human-readable list of supported solver types.
Definition at line 94 of file solver_interface.cc.