MeshKit  1.0
IAMilp Class Reference

#include <IAMilp.hpp>

List of all members.

Public Member Functions

 IAMilp (const IAData *data_ptr, IASolution *solution_ptr)
virtual ~IAMilp ()
bool solve ()

Private Member Functions

int x_i (int i)
int delta_plus_i (int i)
int delta_minus_i (int i)
int delta_j (int j)
bool create_problem ()
bool destroy_problem ()
bool set_natural_constraints ()
bool set_deltas ()
bool weight_deltas_1 ()
bool set_maxes ()
bool set_objectives_1 ()
bool set_sum_even_constratins ()
bool set_bounds_1 ()
bool set_bounds_2 ()
bool set_bounds_3 ()
bool set_bounds_4 ()
bool set_bounds_A ()
bool set_bounds_B ()
bool glpk_solve (bool &optimal)
bool get_solution ()
bool solution_is_integer ()
bool solution_satisfies_constraints ()
void print_constraint (int j)
void print_solution (int i)
void get_x_bounds (const int i, double &lobound, double &hibound)
 IAMilp ()
 IAMilp (const IAMilp &)
IAMilpoperator= (const IAMilp &)

Private Attributes

const IAData * data
IASolution * solution
IAWeights weights_plus
IAWeights weights_minus
const bool debugging
const double constraint_tolerance
const double integrality_tolerance
GlpRepresentationlp
bool naturalConstraintsSet
bool deltasSet
bool weightsSet
bool maxesSet
bool solved
int xStart
int deltaStart
int deltaConstraintStart
int mwp_i
int mwp_j
int mwm_i
int mwm_j
int mw_i
int mw_j

Detailed Description

Definition at line 33 of file IAMilp.hpp.


Constructor & Destructor Documentation

IAMilp ( const IAData *  data_ptr,
IASolution *  solution_ptr 
)

default constructor

Definition at line 28 of file IAMilp.cpp.

~IAMilp ( ) [virtual]

default destructor

Definition at line 42 of file IAMilp.cpp.

IAMilp ( ) [private]
IAMilp ( const IAMilp ) [private]

Member Function Documentation

bool create_problem ( ) [private]

Definition at line 73 of file IAMilp.cpp.

int delta_j ( int  j) [inline, private]

Definition at line 67 of file IAMilp.cpp.

int delta_minus_i ( int  i) [inline, private]

Definition at line 61 of file IAMilp.cpp.

int delta_plus_i ( int  i) [inline, private]

Definition at line 55 of file IAMilp.cpp.

bool destroy_problem ( ) [private]

Definition at line 87 of file IAMilp.cpp.

bool get_solution ( ) [private]

Definition at line 730 of file IAMilp.cpp.

void get_x_bounds ( const int  i,
double &  lobound,
double &  hibound 
) [private]

Definition at line 186 of file IAMilp.cpp.

bool glpk_solve ( bool &  optimal) [private]

Definition at line 567 of file IAMilp.cpp.

IAMilp& operator= ( const IAMilp ) [private]
void print_constraint ( int  j) [private]

Definition at line 667 of file IAMilp.cpp.

void print_solution ( int  i) [private]

Definition at line 720 of file IAMilp.cpp.

bool set_bounds_1 ( ) [private]

Definition at line 276 of file IAMilp.cpp.

bool set_bounds_2 ( ) [private]

Definition at line 295 of file IAMilp.cpp.

bool set_bounds_3 ( ) [private]

Definition at line 314 of file IAMilp.cpp.

bool set_bounds_4 ( ) [private]

Definition at line 333 of file IAMilp.cpp.

bool set_bounds_A ( ) [private]

Definition at line 354 of file IAMilp.cpp.

bool set_bounds_B ( ) [private]

Definition at line 409 of file IAMilp.cpp.

bool set_deltas ( ) [private]

Definition at line 202 of file IAMilp.cpp.

bool set_maxes ( ) [private]

Definition at line 444 of file IAMilp.cpp.

bool set_natural_constraints ( ) [private]

Definition at line 118 of file IAMilp.cpp.

bool set_objectives_1 ( ) [private]

Definition at line 539 of file IAMilp.cpp.

bool set_sum_even_constratins ( ) [private]

Definition at line 270 of file IAMilp.cpp.

bool solution_is_integer ( ) [private]

Definition at line 699 of file IAMilp.cpp.

bool solution_satisfies_constraints ( ) [private]

Definition at line 624 of file IAMilp.cpp.

bool solve ( )

Definition at line 762 of file IAMilp.cpp.

bool weight_deltas_1 ( ) [private]

Definition at line 421 of file IAMilp.cpp.

int x_i ( int  i) [inline, private]

Definition at line 49 of file IAMilp.cpp.


Member Data Documentation

const double constraint_tolerance [private]

Definition at line 69 of file IAMilp.hpp.

const IAData* data [private]

Definition at line 57 of file IAMilp.hpp.

const bool debugging [private]

Definition at line 66 of file IAMilp.hpp.

int deltaConstraintStart [private]

Definition at line 86 of file IAMilp.hpp.

bool deltasSet [private]

Definition at line 75 of file IAMilp.hpp.

int deltaStart [private]

Definition at line 83 of file IAMilp.hpp.

const double integrality_tolerance [private]

Definition at line 70 of file IAMilp.hpp.

GlpRepresentation* lp [private]

Definition at line 73 of file IAMilp.hpp.

bool maxesSet [private]

Definition at line 77 of file IAMilp.hpp.

int mw_i [private]

Definition at line 92 of file IAMilp.hpp.

int mw_j [private]

Definition at line 93 of file IAMilp.hpp.

int mwm_i [private]

Definition at line 90 of file IAMilp.hpp.

int mwm_j [private]

Definition at line 91 of file IAMilp.hpp.

int mwp_i [private]

Definition at line 88 of file IAMilp.hpp.

int mwp_j [private]

Definition at line 89 of file IAMilp.hpp.

bool naturalConstraintsSet [private]

Definition at line 74 of file IAMilp.hpp.

IASolution* solution [private]

Definition at line 59 of file IAMilp.hpp.

bool solved [private]

Definition at line 78 of file IAMilp.hpp.

IAWeights weights_minus [private]

Definition at line 64 of file IAMilp.hpp.

IAWeights weights_plus [private]

Definition at line 63 of file IAMilp.hpp.

bool weightsSet [private]

Definition at line 76 of file IAMilp.hpp.

int xStart [private]

Definition at line 81 of file IAMilp.hpp.


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