Scippy

SCIP

Solving Constraint Integer Programs

polyscip::TwoDProj Class Reference

Detailed Description

Class representing a two-dimensional projection of an outcome.

Definition at line 47 of file polyscip.h.

Class representing a two-dimensional projection of an outcome. More...

#include <polyscip.h>

Public Member Functions

 TwoDProj (const OutcomeType &outcome, std::size_t first, std::size_t second)
 
ValueType getFirst () const
 
ValueType getSecond () const
 

Friends

std::ostream & operator<< (std::ostream &os, const TwoDProj &proj)
 

Constructor & Destructor Documentation

◆ TwoDProj()

polyscip::TwoDProj::TwoDProj ( const OutcomeType outcome,
std::size_t  first,
std::size_t  second 
)
explicit

Default constructor

Parameters
outcomeCorresponding outcome to take two-dimensional projection of
firstFirst (objective) index of outcome to consider for projection
secondSecond (objective) index of outcome to consider for projection

Definition at line 81 of file polyscip.cpp.

Member Function Documentation

◆ getFirst()

ValueType polyscip::TwoDProj::getFirst ( ) const
inline

Get first projection value

Returns
First value of projection

Definition at line 64 of file polyscip.h.

Referenced by polyscip::NondomProjections::epsilonDominates().

◆ getSecond()

ValueType polyscip::TwoDProj::getSecond ( ) const
inline

Get second projection value

Returns
Second value of projection

Definition at line 70 of file polyscip.h.

References operator<<.

Referenced by polyscip::NondomProjections::epsilonDominates().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const TwoDProj proj 
)
friend

Ostream operator

Parameters
osOutput stream
projProjection to write to stream
Returns
Output stream

Referenced by getSecond().