Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
CbcNauty Class Reference

#include <CbcSymmetry.hpp>

+ Collaboration diagram for CbcNauty:

Public Types

enum  VarStatus { FIX_AT_ZERO, FIX_AT_ONE, FREE }
 

Public Member Functions

void addElement (int ix, int jx)
 
void clearPartitions ()
 
void computeAuto ()
 
void deleteElement (int ix, int jx)
 
void color_node (int ix, int color)
 
void insertRHS (int rhs, int cons)
 
double getGroupSize () const
 
int getN () const
 
int getNumGenerators () const
 
int getNumOrbits () const
 
std::vector< std::vector< int > > * getOrbits () const
 Returns the orbits in a "convenient" form. More...
 
void getVstat (double *v, int nv)
 
bool isSparse () const
 
int errorStatus () const
 
void setWriteAutoms (const std::string &afilename)
 Methods to classify orbits. More...
 
void unsetWriteAutoms ()
 

Private Attributes

graph * G_
 
sparsegraph * GSparse_
 
int * lab_
 
int * ptn_
 
set * active_
 
int * orbits_
 
optionblk * options_
 
statsblk * stats_
 
setword * workspace_
 
int worksize_
 
int m_
 
int n_
 
size_t nel_
 
graph * canonG_
 
bool autoComputed_
 
int * vstat_
 
std::multimap< int, int > constr_rhs
 
std::multimap< int, int >::iterator it
 
std::pair< std::multimap< int,
int >::iterator, std::multimap
< int, int >::iterator > 
ret
 
FILE * afp_
 

Constructors and destructors

 CbcNauty ()
 Default constructor. More...
 
 CbcNauty (int n, const size_t *v, const int *d, const int *e)
 Normal constructor (if dense - NULLS) More...
 
 CbcNauty (const CbcNauty &)
 Copy constructor. More...
 
CbcNautyoperator= (const CbcNauty &rhs)
 Assignment operator. More...
 
 ~CbcNauty ()
 Destructor. More...
 

Detailed Description

Definition at line 176 of file CbcSymmetry.hpp.

Member Enumeration Documentation

Enumerator
FIX_AT_ZERO 
FIX_AT_ONE 
FREE 

Definition at line 180 of file CbcSymmetry.hpp.

Constructor & Destructor Documentation

CbcNauty::CbcNauty ( )
private

Default constructor.

CbcNauty::CbcNauty ( int  n,
const size_t *  v,
const int *  d,
const int *  e 
)

Normal constructor (if dense - NULLS)

CbcNauty::CbcNauty ( const CbcNauty )

Copy constructor.

CbcNauty::~CbcNauty ( )

Destructor.

Member Function Documentation

CbcNauty& CbcNauty::operator= ( const CbcNauty rhs)

Assignment operator.

void CbcNauty::addElement ( int  ix,
int  jx 
)
void CbcNauty::clearPartitions ( )
void CbcNauty::computeAuto ( )
void CbcNauty::deleteElement ( int  ix,
int  jx 
)
void CbcNauty::color_node ( int  ix,
int  color 
)
inline

Definition at line 205 of file CbcSymmetry.hpp.

void CbcNauty::insertRHS ( int  rhs,
int  cons 
)
inline

Definition at line 206 of file CbcSymmetry.hpp.

double CbcNauty::getGroupSize ( ) const
int CbcNauty::getN ( ) const
inline

Definition at line 212 of file CbcSymmetry.hpp.

int CbcNauty::getNumGenerators ( ) const
int CbcNauty::getNumOrbits ( ) const
std::vector<std::vector<int> >* CbcNauty::getOrbits ( ) const

Returns the orbits in a "convenient" form.

void CbcNauty::getVstat ( double *  v,
int  nv 
)
bool CbcNauty::isSparse ( ) const
inline

Definition at line 221 of file CbcSymmetry.hpp.

int CbcNauty::errorStatus ( ) const
inline

Definition at line 223 of file CbcSymmetry.hpp.

void CbcNauty::setWriteAutoms ( const std::string &  afilename)

Methods to classify orbits.

Not horribly efficient, but gets the job done

void CbcNauty::unsetWriteAutoms ( )

Member Data Documentation

graph* CbcNauty::G_
private

Definition at line 241 of file CbcSymmetry.hpp.

sparsegraph* CbcNauty::GSparse_
private

Definition at line 242 of file CbcSymmetry.hpp.

int* CbcNauty::lab_
private

Definition at line 243 of file CbcSymmetry.hpp.

int* CbcNauty::ptn_
private

Definition at line 244 of file CbcSymmetry.hpp.

set* CbcNauty::active_
private

Definition at line 245 of file CbcSymmetry.hpp.

int* CbcNauty::orbits_
private

Definition at line 246 of file CbcSymmetry.hpp.

optionblk* CbcNauty::options_
private

Definition at line 248 of file CbcSymmetry.hpp.

statsblk* CbcNauty::stats_
private

Definition at line 249 of file CbcSymmetry.hpp.

setword* CbcNauty::workspace_
private

Definition at line 254 of file CbcSymmetry.hpp.

int CbcNauty::worksize_
private

Definition at line 255 of file CbcSymmetry.hpp.

int CbcNauty::m_
private

Definition at line 256 of file CbcSymmetry.hpp.

int CbcNauty::n_
private

Definition at line 257 of file CbcSymmetry.hpp.

size_t CbcNauty::nel_
private

Definition at line 258 of file CbcSymmetry.hpp.

graph* CbcNauty::canonG_
private

Definition at line 259 of file CbcSymmetry.hpp.

bool CbcNauty::autoComputed_
private

Definition at line 261 of file CbcSymmetry.hpp.

int* CbcNauty::vstat_
private

Definition at line 263 of file CbcSymmetry.hpp.

std::multimap<int,int> CbcNauty::constr_rhs
private

Definition at line 268 of file CbcSymmetry.hpp.

std::multimap<int,int>::iterator CbcNauty::it
private

Definition at line 269 of file CbcSymmetry.hpp.

std::pair<std::multimap<int,int>::iterator, std::multimap<int,int>::iterator> CbcNauty::ret
private

Definition at line 272 of file CbcSymmetry.hpp.

FILE* CbcNauty::afp_
private

Definition at line 275 of file CbcSymmetry.hpp.


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