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

Removes the fixed variables from the problem. More...

#include <preprocessor.h>

Inheritance diagram for operations_research::glop::FixedVariablePreprocessor:
operations_research::glop::Preprocessor

Public Member Functions

 FixedVariablePreprocessor (const GlopParameters *parameters)
 FixedVariablePreprocessor (const FixedVariablePreprocessor &)=delete
FixedVariablePreprocessoroperator= (const FixedVariablePreprocessor &)=delete
 ~FixedVariablePreprocessor () 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

Removes the fixed variables from the problem.

FixedVariablePreprocessor

Definition at line 543 of file preprocessor.h.

Constructor & Destructor Documentation

◆ FixedVariablePreprocessor() [1/2]

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

Definition at line 545 of file preprocessor.h.

◆ FixedVariablePreprocessor() [2/2]

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

◆ ~FixedVariablePreprocessor()

operations_research::glop::FixedVariablePreprocessor::~FixedVariablePreprocessor ( )
finaldefault

Member Function Documentation

◆ operator=()

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

◆ RecoverSolution()

void operations_research::glop::FixedVariablePreprocessor::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 1123 of file preprocessor.cc.

◆ Run()

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

FixedVariablePreprocessor

We need to change the constraint bounds.

Implements operations_research::glop::Preprocessor.

Definition at line 1101 of file preprocessor.cc.


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