Parma_Polyhedra_Library::MIP_Problem::RAII_Temporary_Real_Relaxation Struct Reference

A helper class to temporarily relax a MIP problem using RAII. More...

Collaboration diagram for Parma_Polyhedra_Library::MIP_Problem::RAII_Temporary_Real_Relaxation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RAII_Temporary_Real_Relaxation (MIP_Problem &mip)
 ~RAII_Temporary_Real_Relaxation ()

Public Attributes

MIP_Problemlp
Variables_Set i_vars

Detailed Description

A helper class to temporarily relax a MIP problem using RAII.

Definition at line 510 of file MIP_Problem.defs.hh.


Constructor & Destructor Documentation

Parma_Polyhedra_Library::MIP_Problem::RAII_Temporary_Real_Relaxation::RAII_Temporary_Real_Relaxation ( MIP_Problem mip  )  [inline]

Definition at line 514 of file MIP_Problem.defs.hh.

References Parma_Polyhedra_Library::MIP_Problem::i_variables, i_vars, lp, and Parma_Polyhedra_Library::MIP_Problem::swap().

00515       : lp(mip), i_vars() {
00516       // Turn mip into an LP problem (saving i_variables in i_vars).
00517       std::swap(i_vars, lp.i_variables);
00518     }

Parma_Polyhedra_Library::MIP_Problem::RAII_Temporary_Real_Relaxation::~RAII_Temporary_Real_Relaxation (  )  [inline]

Definition at line 520 of file MIP_Problem.defs.hh.

References Parma_Polyhedra_Library::MIP_Problem::i_variables, i_vars, lp, and Parma_Polyhedra_Library::MIP_Problem::swap().

00520                                       {
00521       // Restore the original set of integer variables.
00522       std::swap(i_vars, lp.i_variables);
00523     }


Member Data Documentation


The documentation for this struct was generated from the following file:
Generated on Sun Feb 27 16:20:23 2011 for PPL by  doxygen 1.6.3