MeshKit  1.0
IASolverTool Class Reference

#include <IASolverTool.hpp>

Inheritance diagram for IASolverTool:

List of all members.

Public Member Functions

 IASolverTool ()
 IASolverTool (const IAData *ia_data, IASolution *ia_solution, bool debugging_set=false)
 IASolverTool (const bool debugging_set)
virtual ~IASolverTool ()
const IADataia_data () const
IASolutionia_solution () const
void ia_data (const IAData *set_data)
void ia_solution (IASolution *set_solution)
virtual void set_debug (const bool debugging_set)
bool valid_solution () const
bool is_integer (const double x) const
bool is_integer (const double x, int &x_int) const
bool is_integer (const double x, double &x_int_double) const
bool is_even (double y) const
bool is_even (double y, int &y_even) const
double equal_value (int i) const
double even_value (int i) const
void even_floor_ceil (double s, double &s_floor, double &s_ceil) const
void int_floor_ceil (double x, double &x_floor, double &x_ceil) const
std::pair< bool, double > equal_constraint (const int i, const bool print_me=false, const bool print_unsatisfied=false) const
std::pair< bool, double > even_constraint (const int i, const bool print_me=false, const bool print_unsatisfied=false) const
bool equal_constraints (const bool print_me=false, const bool print_unsatisfied=false) const
bool even_constraints (const bool print_me=false, const bool print_unsatisfied=false) const
bool all_constraints (const bool print_me=false, const bool print_unsatisfied=false) const
void print_solution () const
void print_problem () const
void print (const bool do_print_solution, const bool do_print_nonint, const bool do_print_equal_constraints, const bool do_print_nonequal, const bool do_print_even_constraints, const bool do_print_noneven) const
void print () const
void print_violations () const

Protected Attributes

const IADataiaData
IASolutioniaSolution
bool debuggingTool

Detailed Description

Definition at line 16 of file IASolverTool.hpp.


Constructor & Destructor Documentation

IASolverTool ( ) [inline]

default constructor

Definition at line 21 of file IASolverTool.hpp.

IASolverTool ( const IAData ia_data,
IASolution ia_solution,
bool  debugging_set = false 
) [inline]

Definition at line 24 of file IASolverTool.hpp.

IASolverTool ( const bool  debugging_set) [inline]

Definition at line 27 of file IASolverTool.hpp.

~IASolverTool ( ) [virtual]

default destructor

Definition at line 18 of file IASolverTool.cpp.


Member Function Documentation

bool all_constraints ( const bool  print_me = false,
const bool  print_unsatisfied = false 
) const

Definition at line 315 of file IASolverTool.cpp.

std::pair< bool, double > equal_constraint ( const int  i,
const bool  print_me = false,
const bool  print_unsatisfied = false 
) const

Definition at line 234 of file IASolverTool.cpp.

bool equal_constraints ( const bool  print_me = false,
const bool  print_unsatisfied = false 
) const

Definition at line 293 of file IASolverTool.cpp.

double equal_value ( int  i) const

Definition at line 187 of file IASolverTool.cpp.

std::pair< bool, double > even_constraint ( const int  i,
const bool  print_me = false,
const bool  print_unsatisfied = false 
) const

Definition at line 263 of file IASolverTool.cpp.

bool even_constraints ( const bool  print_me = false,
const bool  print_unsatisfied = false 
) const

Definition at line 304 of file IASolverTool.cpp.

void even_floor_ceil ( double  s,
double &  s_floor,
double &  s_ceil 
) const

Definition at line 218 of file IASolverTool.cpp.

double even_value ( int  i) const

Definition at line 201 of file IASolverTool.cpp.

const IAData* ia_data ( ) const [inline]

Definition at line 35 of file IASolverTool.hpp.

void ia_data ( const IAData set_data) [inline]

Definition at line 37 of file IASolverTool.hpp.

IASolution* ia_solution ( ) const [inline]

Definition at line 36 of file IASolverTool.hpp.

void ia_solution ( IASolution set_solution) [inline]

Definition at line 38 of file IASolverTool.hpp.

void int_floor_ceil ( double  x,
double &  x_floor,
double &  x_ceil 
) const

Definition at line 224 of file IASolverTool.cpp.

bool is_even ( double  y) const

Definition at line 181 of file IASolverTool.cpp.

bool is_even ( double  y,
int &  y_even 
) const

Definition at line 172 of file IASolverTool.cpp.

bool is_integer ( const double  x) const

Definition at line 40 of file IASolverTool.cpp.

bool is_integer ( const double  x,
int &  x_int 
) const

Definition at line 31 of file IASolverTool.cpp.

bool is_integer ( const double  x,
double &  x_int_double 
) const

Definition at line 24 of file IASolverTool.cpp.

void print ( const bool  do_print_solution,
const bool  do_print_nonint,
const bool  do_print_equal_constraints,
const bool  do_print_nonequal,
const bool  do_print_even_constraints,
const bool  do_print_noneven 
) const

Definition at line 53 of file IASolverTool.cpp.

void print ( ) const [inline]

Definition at line 92 of file IASolverTool.hpp.

void print_problem ( ) const

Definition at line 167 of file IASolverTool.cpp.

void print_solution ( ) const

Definition at line 162 of file IASolverTool.cpp.

void print_violations ( ) const [inline]

Definition at line 94 of file IASolverTool.hpp.

virtual void set_debug ( const bool  debugging_set) [inline, virtual]

Reimplemented in IASolverToolInt.

Definition at line 39 of file IASolverTool.hpp.

bool valid_solution ( ) const

Definition at line 47 of file IASolverTool.cpp.


Member Data Documentation

bool debuggingTool [protected]

Definition at line 104 of file IASolverTool.hpp.

const IAData* iaData [protected]

Definition at line 100 of file IASolverTool.hpp.

IASolution* iaSolution [protected]

Definition at line 101 of file IASolverTool.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines