Cbc  2.10.10
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | 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 }
 

Constructors and destructors

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_
 
 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...
 
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
 
optionblk * options () const
 Pointer to options. More...
 
void setWriteAutoms (const std::string &afilename)
 Methods to classify orbits. More...
 
void unsetWriteAutoms ()
 

Detailed Description

Definition at line 233 of file CbcSymmetry.hpp.

Member Enumeration Documentation

◆ VarStatus

Enumerator
FIX_AT_ZERO 
FIX_AT_ONE 
FREE 

Definition at line 236 of file CbcSymmetry.hpp.

Constructor & Destructor Documentation

◆ CbcNauty() [1/3]

CbcNauty::CbcNauty ( )
private

Default constructor.

◆ CbcNauty() [2/3]

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

Normal constructor (if dense - NULLS)

◆ CbcNauty() [3/3]

CbcNauty::CbcNauty ( const CbcNauty )

Copy constructor.

◆ ~CbcNauty()

CbcNauty::~CbcNauty ( )

Destructor.

Member Function Documentation

◆ operator=()

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

Assignment operator.

◆ addElement()

void CbcNauty::addElement ( int  ix,
int  jx 
)

◆ clearPartitions()

void CbcNauty::clearPartitions ( )

◆ computeAuto()

void CbcNauty::computeAuto ( )

◆ deleteElement()

void CbcNauty::deleteElement ( int  ix,
int  jx 
)

◆ color_node()

void CbcNauty::color_node ( int  ix,
int  color 
)
inline

Definition at line 264 of file CbcSymmetry.hpp.

◆ insertRHS()

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

Definition at line 265 of file CbcSymmetry.hpp.

◆ getGroupSize()

double CbcNauty::getGroupSize ( ) const

◆ getN()

int CbcNauty::getN ( ) const
inline

Definition at line 271 of file CbcSymmetry.hpp.

◆ getNumGenerators()

int CbcNauty::getNumGenerators ( ) const

◆ getNumOrbits()

int CbcNauty::getNumOrbits ( ) const

◆ getOrbits()

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

Returns the orbits in a "convenient" form.

◆ getVstat()

void CbcNauty::getVstat ( double *  v,
int  nv 
)

◆ isSparse()

bool CbcNauty::isSparse ( ) const
inline

Definition at line 280 of file CbcSymmetry.hpp.

◆ errorStatus()

int CbcNauty::errorStatus ( ) const
inline

Definition at line 284 of file CbcSymmetry.hpp.

◆ options()

optionblk* CbcNauty::options ( ) const
inline

Pointer to options.

Definition at line 295 of file CbcSymmetry.hpp.

◆ setWriteAutoms()

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

Methods to classify orbits.

Not horribly efficient, but gets the job done

◆ unsetWriteAutoms()

void CbcNauty::unsetWriteAutoms ( )

Member Data Documentation

◆ G_

graph* CbcNauty::G_
private

Definition at line 314 of file CbcSymmetry.hpp.

◆ GSparse_

sparsegraph* CbcNauty::GSparse_
private

Definition at line 315 of file CbcSymmetry.hpp.

◆ lab_

int* CbcNauty::lab_
private

Definition at line 316 of file CbcSymmetry.hpp.

◆ ptn_

int* CbcNauty::ptn_
private

Definition at line 317 of file CbcSymmetry.hpp.

◆ active_

set* CbcNauty::active_
private

Definition at line 318 of file CbcSymmetry.hpp.

◆ orbits_

int* CbcNauty::orbits_
private

Definition at line 319 of file CbcSymmetry.hpp.

◆ options_

optionblk* CbcNauty::options_
private

Definition at line 321 of file CbcSymmetry.hpp.

◆ stats_

statsblk* CbcNauty::stats_
private

Definition at line 322 of file CbcSymmetry.hpp.

◆ workspace_

setword* CbcNauty::workspace_
private

Definition at line 327 of file CbcSymmetry.hpp.

◆ worksize_

int CbcNauty::worksize_
private

Definition at line 328 of file CbcSymmetry.hpp.

◆ m_

int CbcNauty::m_
private

Definition at line 329 of file CbcSymmetry.hpp.

◆ n_

int CbcNauty::n_
private

Definition at line 330 of file CbcSymmetry.hpp.

◆ nel_

size_t CbcNauty::nel_
private

Definition at line 331 of file CbcSymmetry.hpp.

◆ canonG_

graph* CbcNauty::canonG_
private

Definition at line 332 of file CbcSymmetry.hpp.

◆ autoComputed_

bool CbcNauty::autoComputed_
private

Definition at line 334 of file CbcSymmetry.hpp.

◆ vstat_

int* CbcNauty::vstat_
private

Definition at line 336 of file CbcSymmetry.hpp.

◆ constr_rhs

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

Definition at line 341 of file CbcSymmetry.hpp.

◆ it

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

Definition at line 342 of file CbcSymmetry.hpp.

◆ ret

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

Definition at line 346 of file CbcSymmetry.hpp.

◆ afp_

FILE* CbcNauty::afp_
private

Definition at line 349 of file CbcSymmetry.hpp.


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