Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <preprocessor.h>
Public Member Functions | |
ScalingPreprocessor (const GlopParameters *parameters) | |
ScalingPreprocessor (const ScalingPreprocessor &)=delete | |
ScalingPreprocessor & | operator= (const ScalingPreprocessor &)=delete |
~ScalingPreprocessor () final=default | |
bool | Run (LinearProgram *lp) final |
void | RecoverSolution (ProblemSolution *solution) const final |
void | UseInMipContext () final |
Public Member Functions inherited from operations_research::glop::Preprocessor | |
Preprocessor (const GlopParameters *parameters) | |
Preprocessor (const Preprocessor &)=delete | |
Preprocessor & | operator= (const Preprocessor &)=delete |
virtual | ~Preprocessor () |
ProblemStatus | status () const |
void | SetTimeLimit (TimeLimit *time_limit) |
Additional Inherited Members | |
Protected Member Functions inherited from operations_research::glop::Preprocessor | |
bool | IsSmallerWithinFeasibilityTolerance (Fractional a, Fractional b) const |
bool | IsSmallerWithinPreprocessorZeroTolerance (Fractional a, Fractional b) const |
Protected Attributes inherited from operations_research::glop::Preprocessor | |
ProblemStatus | status_ |
const GlopParameters & | parameters_ |
bool | in_mip_context_ |
std::unique_ptr< TimeLimit > | infinite_time_limit_ |
TimeLimit * | time_limit_ |
ScalingPreprocessor Scales the SparseMatrix of the linear program using a SparseMatrixScaler. This is only applied if the parameter use_scaling is true.
Definition at line 1035 of file preprocessor.h.
|
inlineexplicit |
Definition at line 1037 of file preprocessor.h.
|
delete |
|
finaldefault |
|
delete |
|
finalvirtual |
Stores the optimal solution of the linear program that was passed to Run(). The given solution needs to be set to the optimal solution of the linear program "modified" by Run().
Make sure the variable are at they exact bounds according to their status. This just remove a really low error (about 1e-15) but allows to keep the variables at their exact bounds.
Implements operations_research::glop::Preprocessor.
Definition at line 3831 of file preprocessor.cc.
|
finalvirtual |
Save the linear program bounds before scaling them.
See the doc of these functions for more details. It is important to call Scale() before the other two.
Implements operations_research::glop::Preprocessor.
Definition at line 3808 of file preprocessor.cc.
|
inlinefinalvirtual |
Some preprocessors only need minimal changes when used with integer variables in a MIP context. Setting this to true allows to consider integer variables as integer in these preprocessors.
Not all preprocessors handle integer variables correctly, calling this function on them will cause a LOG(FATAL).
Reimplemented from operations_research::glop::Preprocessor.
Definition at line 1044 of file preprocessor.h.