Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::SolverInterface Class Referenceabstract

Detailed Description

Definition at line 55 of file solver_interface.h.

#include <solver_interface.h>

Inheritance diagram for operations_research::math_opt::SolverInterface:
operations_research::math_opt::CpSatSolver operations_research::math_opt::DelegatingSolver operations_research::math_opt::GScipSolver operations_research::math_opt::GlopSolver operations_research::math_opt::GlpkSolver operations_research::math_opt::GurobiSolver operations_research::math_opt::HighsSolver operations_research::math_opt::PdlpSolver operations_research::math_opt::SolverInterfaceMock operations_research::math_opt::XpressSolver

Classes

struct  InitArgs

Public Types

using MessageCallback = std::function<void(const std::vector<std::string>&)>
using Callback
using Factory

Public Member Functions

 SolverInterface ()=default
 SolverInterface (const SolverInterface &)=delete
SolverInterfaceoperator= (const SolverInterface &)=delete
virtual ~SolverInterface ()=default
virtual absl::StatusOr< SolveResultProtoSolve (const SolveParametersProto &parameters, const ModelSolveParametersProto &model_parameters, MessageCallback message_cb, const CallbackRegistrationProto &callback_registration, Callback cb, const SolveInterrupter *absl_nullable interrupter)=0
virtual absl::StatusOr< bool > Update (const ModelUpdateProto &model_update)=0
virtual absl::StatusOr< ComputeInfeasibleSubsystemResultProtoComputeInfeasibleSubsystem (const SolveParametersProto &parameters, MessageCallback message_cb, const SolveInterrupter *absl_nullable interrupter)=0

Member Typedef Documentation

◆ Callback

Initial value:
std::function<absl::StatusOr<CallbackResultProto>(

Definition at line 96 of file solver_interface.h.

◆ Factory

Initial value:
std::function<absl::StatusOr<std::unique_ptr<SolverInterface>>(
const ModelProto& model, const InitArgs& init_args)>

Definition at line 108 of file solver_interface.h.

◆ MessageCallback

using operations_research::math_opt::SolverInterface::MessageCallback = std::function<void(const std::vector<std::string>&)>

Definition at line 72 of file solver_interface.h.

Constructor & Destructor Documentation

◆ SolverInterface() [1/2]

operations_research::math_opt::SolverInterface::SolverInterface ( )
default

◆ SolverInterface() [2/2]

operations_research::math_opt::SolverInterface::SolverInterface ( const SolverInterface & )
delete

◆ ~SolverInterface()

virtual operations_research::math_opt::SolverInterface::~SolverInterface ( )
virtualdefault

Member Function Documentation

◆ ComputeInfeasibleSubsystem()

◆ operator=()

SolverInterface & operations_research::math_opt::SolverInterface::operator= ( const SolverInterface & )
delete

◆ Solve()

◆ Update()


The documentation for this class was generated from the following file: