![]() |
OR-Tools
9.6
|
Definition at line 134 of file 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 (LogCallback *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 | 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 271 of file model_builder_helper.cc.
| double activity | ( | int | ct_index | ) |
Definition at line 423 of file model_builder_helper.cc.
| double best_objective_bound | ( | ) | const |
Definition at line 400 of file model_builder_helper.cc.
| void ClearLogCallback | ( | ) |
Definition at line 367 of file model_builder_helper.cc.
| double dual_value | ( | int | ct_index | ) | const |
Definition at line 417 of file model_builder_helper.cc.
| void EnableOutput | ( | bool | enabled | ) |
Definition at line 468 of file model_builder_helper.cc.
| bool has_response | ( | ) | const |
Definition at line 374 of file model_builder_helper.cc.
| bool has_solution | ( | ) | const |
Definition at line 376 of file model_builder_helper.cc.
| bool InterruptSolve | ( | ) |
Definition at line 369 of file model_builder_helper.cc.
| double objective_value | ( | ) | const |
Definition at line 395 of file model_builder_helper.cc.
| double reduced_cost | ( | int | var_index | ) | const |
Definition at line 411 of file model_builder_helper.cc.
| const MPSolutionResponse & response | ( | ) | const |
Definition at line 384 of file model_builder_helper.cc.
| void SetLogCallback | ( | std::function< void(const std::string &)> | log_callback | ) |
Definition at line 355 of file model_builder_helper.cc.
| void SetLogCallbackFromDirectorClass | ( | LogCallback * | log_callback | ) |
Definition at line 360 of file model_builder_helper.cc.
| void SetSolverSpecificParameters | ( | const std::string & | solver_specific_parameters | ) |
Definition at line 463 of file model_builder_helper.cc.
| void SetTimeLimitInSeconds | ( | double | limit | ) |
Definition at line 459 of file model_builder_helper.cc.
| void Solve | ( | const ModelBuilderHelper & | model | ) |
Definition at line 285 of file model_builder_helper.cc.
| std::optional< MPSolutionResponse > SolveRequest | ( | const MPModelRequest & | request | ) |
Definition at line 227 of file model_builder_helper.cc.
| bool SolverIsSupported | ( | ) | const |
Definition at line 281 of file model_builder_helper.cc.
| SolveStatus status | ( | ) | const |
Definition at line 388 of file model_builder_helper.cc.
| std::string status_string | ( | ) | const |
Definition at line 442 of file model_builder_helper.cc.
| double user_time | ( | ) | const |
Definition at line 453 of file model_builder_helper.cc.
| double variable_value | ( | int | var_index | ) | const |
Definition at line 405 of file model_builder_helper.cc.
| double wall_time | ( | ) | const |
Definition at line 447 of file model_builder_helper.cc.