Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::SingletonColumnSignPreprocessor Class Referencefinal

#include <preprocessor.h>

Inheritance diagram for operations_research::glop::SingletonColumnSignPreprocessor:
operations_research::glop::Preprocessor

Public Member Functions

 SingletonColumnSignPreprocessor (const GlopParameters *parameters)
 
 SingletonColumnSignPreprocessor (const SingletonColumnSignPreprocessor &)=delete
 
SingletonColumnSignPreprocessoroperator= (const SingletonColumnSignPreprocessor &)=delete
 
 ~SingletonColumnSignPreprocessor () final=default
 
bool Run (LinearProgram *lp) final
 
void RecoverSolution (ProblemSolution *solution) const final
 
- Public Member Functions inherited from operations_research::glop::Preprocessor
 Preprocessor (const GlopParameters *parameters)
 
 Preprocessor (const Preprocessor &)=delete
 
Preprocessoroperator= (const Preprocessor &)=delete
 
virtual ~Preprocessor ()
 
ProblemStatus status () const
 
virtual void UseInMipContext ()
 
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< TimeLimitinfinite_time_limit_
 
TimeLimittime_limit_
 

Detailed Description

SingletonColumnSignPreprocessor Make sure that the only coefficient of all singleton columns (i.e. column with only one entry) is positive. This is because this way the column will be transformed in an identity column by the scaling. This will lead to more efficient solve when this column is involved.

Definition at line 828 of file preprocessor.h.

Constructor & Destructor Documentation

◆ SingletonColumnSignPreprocessor() [1/2]

operations_research::glop::SingletonColumnSignPreprocessor::SingletonColumnSignPreprocessor ( const GlopParameters * parameters)
inlineexplicit

Definition at line 830 of file preprocessor.h.

◆ SingletonColumnSignPreprocessor() [2/2]

operations_research::glop::SingletonColumnSignPreprocessor::SingletonColumnSignPreprocessor ( const SingletonColumnSignPreprocessor & )
delete

◆ ~SingletonColumnSignPreprocessor()

operations_research::glop::SingletonColumnSignPreprocessor::~SingletonColumnSignPreprocessor ( )
finaldefault

Member Function Documentation

◆ operator=()

SingletonColumnSignPreprocessor & operations_research::glop::SingletonColumnSignPreprocessor::operator= ( const SingletonColumnSignPreprocessor & )
delete

◆ RecoverSolution()

void operations_research::glop::SingletonColumnSignPreprocessor::RecoverSolution ( ProblemSolution * solution) const
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().

Implements operations_research::glop::Preprocessor.

Definition at line 3031 of file preprocessor.cc.

◆ Run()

bool operations_research::glop::SingletonColumnSignPreprocessor::Run ( LinearProgram * lp)
finalvirtual

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