OR-Tools  9.6
GlpkSolver

Detailed Description

Definition at line 43 of file glpk_solver.h.

Public Types

using MessageCallback = std::function< void(const std::vector< std::string > &)>
 
using Callback = std::function< absl::StatusOr< CallbackResultProto >(const CallbackDataProto &)>
 
using Factory = std::function< absl::StatusOr< std::unique_ptr< SolverInterface > >(const ModelProto &model, const InitArgs &init_args)>
 

Public Member Functions

 ~GlpkSolver () override
 
absl::StatusOr< SolveResultProto > Solve (const SolveParametersProto &parameters, const ModelSolveParametersProto &model_parameters, MessageCallback message_cb, const CallbackRegistrationProto &callback_registration, Callback cb, SolveInterrupter *interrupter) override
 
absl::StatusOr< bool > Update (const ModelUpdateProto &model_update) override
 

Static Public Member Functions

static absl::StatusOr< std::unique_ptr< SolverInterface > > New (const ModelProto &model, const InitArgs &init_args)
 

Member Typedef Documentation

◆ Callback

using Callback = std::function<absl::StatusOr<CallbackResultProto>( const CallbackDataProto&)>
inherited

Definition at line 84 of file solver_interface.h.

◆ Factory

using Factory = std::function<absl::StatusOr<std::unique_ptr<SolverInterface> >( const ModelProto& model, const InitArgs& init_args)>
inherited

Definition at line 96 of file solver_interface.h.

◆ MessageCallback

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

Definition at line 76 of file solver_interface.h.

Constructor & Destructor Documentation

◆ ~GlpkSolver()

~GlpkSolver ( )
override

Definition at line 880 of file glpk_solver.cc.

Member Function Documentation

◆ New()

absl::StatusOr< std::unique_ptr< SolverInterface > > New ( const ModelProto &  model,
const InitArgs init_args 
)
static

Definition at line 844 of file glpk_solver.cc.

◆ Solve()

absl::StatusOr< SolveResultProto > Solve ( const SolveParametersProto &  parameters,
const ModelSolveParametersProto &  model_parameters,
MessageCallback  message_cb,
const CallbackRegistrationProto &  callback_registration,
Callback  cb,
SolveInterrupter interrupter 
)
overridevirtual

Implements SolverInterface.

Definition at line 1012 of file glpk_solver.cc.

◆ Update()

absl::StatusOr< bool > Update ( const ModelUpdateProto &  model_update)
overridevirtual

Implements SolverInterface.

Definition at line 1576 of file glpk_solver.cc.


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