![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 441 of file model_builder_helper.h.
#include <model_builder_helper.h>
Public Member Functions | |
| ModelSolverHelper (const std::string &solver_name) | |
| bool | SolverIsSupported () const |
| void | Solve (const ModelBuilderHelper &model) |
| std::optional< MPSolutionResponse > | SolveRequest (const MPModelRequest &request) |
| bool | InterruptSolve () |
| void | SetLogCallback (std::function< void(const std::string &)> log_callback) |
| void | SetLogCallbackFromDirectorClass (MbLogCallback *log_callback) |
| void | ClearLogCallback () |
| bool | has_response () const |
| bool | has_solution () const |
| const MPSolutionResponse & | response () const |
| SolveStatus | status () const |
| double | objective_value () const |
| double | best_objective_bound () const |
| double | variable_value (int var_index) const |
| double | expression_value (std::shared_ptr< LinearExpr > expr) const |
| double | reduced_cost (int var_index) const |
| double | dual_value (int ct_index) const |
| double | activity (int ct_index) |
| std::string | status_string () const |
| double | wall_time () const |
| double | user_time () const |
| void | SetTimeLimitInSeconds (double limit) |
| void | SetSolverSpecificParameters (const std::string &solver_specific_parameters) |
| void | EnableOutput (bool enabled) |
|
explicit |
Definition at line 518 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::activity | ( | int | ct_index | ) |
Definition at line 723 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::best_objective_bound | ( | ) | const |
Definition at line 692 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::ClearLogCallback | ( | ) |
Definition at line 658 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::dual_value | ( | int | ct_index | ) | const |
Definition at line 717 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::EnableOutput | ( | bool | enabled | ) |
Definition at line 768 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::expression_value | ( | std::shared_ptr< LinearExpr > | expr | ) | const |
Definition at line 703 of file model_builder_helper.cc.
| bool operations_research::mb::ModelSolverHelper::has_response | ( | ) | const |
Definition at line 666 of file model_builder_helper.cc.
| bool operations_research::mb::ModelSolverHelper::has_solution | ( | ) | const |
Definition at line 668 of file model_builder_helper.cc.
| bool operations_research::mb::ModelSolverHelper::InterruptSolve | ( | ) |
Definition at line 660 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::objective_value | ( | ) | const |
Definition at line 687 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::reduced_cost | ( | int | var_index | ) | const |
Definition at line 711 of file model_builder_helper.cc.
| const MPSolutionResponse & operations_research::mb::ModelSolverHelper::response | ( | ) | const |
Definition at line 676 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::SetLogCallback | ( | std::function< void(const std::string &)> | log_callback | ) |
Definition at line 646 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::SetLogCallbackFromDirectorClass | ( | MbLogCallback * | log_callback | ) |
Definition at line 651 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::SetSolverSpecificParameters | ( | const std::string & | solver_specific_parameters | ) |
Definition at line 763 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::SetTimeLimitInSeconds | ( | double | limit | ) |
Definition at line 759 of file model_builder_helper.cc.
| void operations_research::mb::ModelSolverHelper::Solve | ( | const ModelBuilderHelper & | model | ) |
Definition at line 561 of file model_builder_helper.cc.
| std::optional< MPSolutionResponse > operations_research::mb::ModelSolverHelper::SolveRequest | ( | const MPModelRequest & | request | ) |
Definition at line 471 of file model_builder_helper.cc.
| bool operations_research::mb::ModelSolverHelper::SolverIsSupported | ( | ) | const |
Definition at line 529 of file model_builder_helper.cc.
| SolveStatus operations_research::mb::ModelSolverHelper::status | ( | ) | const |
Definition at line 680 of file model_builder_helper.cc.
| std::string operations_research::mb::ModelSolverHelper::status_string | ( | ) | const |
Definition at line 742 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::user_time | ( | ) | const |
Definition at line 753 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::variable_value | ( | int | var_index | ) | const |
Definition at line 697 of file model_builder_helper.cc.
| double operations_research::mb::ModelSolverHelper::wall_time | ( | ) | const |
Definition at line 747 of file model_builder_helper.cc.