Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ClpSimplexProgress Class Reference

For saving extra information to see if looping. More...

#include <ClpSimplex.hpp>

List of all members.

Public Member Functions

Constructors and destructor and copy
 ClpSimplexProgress ()
 Default constructor.
 ClpSimplexProgress (ClpSimplex *model)
 Constructor from model.
 ClpSimplexProgress (const ClpSimplexProgress &)
 Copy constructor.
ClpSimplexProgressoperator= (const ClpSimplexProgress &rhs)
 Assignment operator. This copies the data.
 ~ClpSimplexProgress ()
 Destructor.
Check progress
int looping ()
 Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.
void startCheck ()
 Start check at beginning of whileIterating.
int cycle (int in, int out, int wayIn, int wayOut)
 Returns cycle length in whileIterating.
double lastObjective (int back=1) const
 Returns previous objective (if -1) - current if (0).
void setInfeasibility (double value)
 Set real primal infeasibility and move back.
double lastInfeasibility (int back=1) const
 Returns real primal infeasibility (if -1) - current if (0).
void modifyObjective (double value)
 Modify objective e.g. if dual infeasible in dual.
int lastIterationNumber (int back=1) const
 Returns previous iteration number (if -1) - current if (0).
void clearIterationNumbers ()
 clears all iteration numbers (to switch off panic)
void newOddState ()
 Odd state.
void endOddState ()
 Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.
void clearOddState ()
 Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.
int oddState () const
 Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.
int badTimes () const
 number of bad times
void clearBadTimes ()
 Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.

Public Attributes

Data
double objective_ [CLP_PROGRESS]
 Objective values.
double infeasibility_ [CLP_PROGRESS]
 Sum of infeasibilities for algorithm.
double realInfeasibility_ [CLP_PROGRESS]
 Sum of real primal infeasibilities for primal.
int in_ [CLP_CYCLE]
 For cycle checking.
int out_ [CLP_CYCLE]
 Objective values.
char way_ [CLP_CYCLE]
 Objective values.
ClpSimplexmodel_
 Pointer back to model so we can get information.
int numberInfeasibilities_ [CLP_PROGRESS]
 Number of infeasibilities.
int iterationNumber_ [CLP_PROGRESS]
 Iteration number at which occurred.
int numberTimes_
 Number of times checked (so won't stop too early).
int numberBadTimes_
 Number of times it looked like loop.
int oddState_
 If things are in an odd state.


Detailed Description

For saving extra information to see if looping.

Definition at line 1302 of file ClpSimplex.hpp.


Constructor & Destructor Documentation

ClpSimplexProgress::ClpSimplexProgress  ) 
 

Default constructor.

ClpSimplexProgress::ClpSimplexProgress ClpSimplex model  ) 
 

Constructor from model.

ClpSimplexProgress::ClpSimplexProgress const ClpSimplexProgress  ) 
 

Copy constructor.

ClpSimplexProgress::~ClpSimplexProgress  ) 
 

Destructor.


Member Function Documentation

ClpSimplexProgress& ClpSimplexProgress::operator= const ClpSimplexProgress rhs  ) 
 

Assignment operator. This copies the data.

int ClpSimplexProgress::looping  ) 
 

Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.

void ClpSimplexProgress::startCheck  ) 
 

Start check at beginning of whileIterating.

int ClpSimplexProgress::cycle int  in,
int  out,
int  wayIn,
int  wayOut
 

Returns cycle length in whileIterating.

double ClpSimplexProgress::lastObjective int  back = 1  )  const
 

Returns previous objective (if -1) - current if (0).

void ClpSimplexProgress::setInfeasibility double  value  ) 
 

Set real primal infeasibility and move back.

double ClpSimplexProgress::lastInfeasibility int  back = 1  )  const
 

Returns real primal infeasibility (if -1) - current if (0).

void ClpSimplexProgress::modifyObjective double  value  ) 
 

Modify objective e.g. if dual infeasible in dual.

int ClpSimplexProgress::lastIterationNumber int  back = 1  )  const
 

Returns previous iteration number (if -1) - current if (0).

void ClpSimplexProgress::clearIterationNumbers  ) 
 

clears all iteration numbers (to switch off panic)

void ClpSimplexProgress::newOddState  )  [inline]
 

Odd state.

Definition at line 1348 of file ClpSimplex.hpp.

void ClpSimplexProgress::endOddState  )  [inline]
 

Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.

Definition at line 1350 of file ClpSimplex.hpp.

void ClpSimplexProgress::clearOddState  )  [inline]
 

Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.

Definition at line 1352 of file ClpSimplex.hpp.

int ClpSimplexProgress::oddState  )  const [inline]
 

Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.

Definition at line 1354 of file ClpSimplex.hpp.

int ClpSimplexProgress::badTimes  )  const [inline]
 

number of bad times

Definition at line 1357 of file ClpSimplex.hpp.

void ClpSimplexProgress::clearBadTimes  )  [inline]
 

Returns -1 if okay, -n+1 (n number of times bad) if bad but action taken, >=0 if give up and use as problem status.

Definition at line 1359 of file ClpSimplex.hpp.


Member Data Documentation

double ClpSimplexProgress::objective_[CLP_PROGRESS]
 

Objective values.

Definition at line 1367 of file ClpSimplex.hpp.

double ClpSimplexProgress::infeasibility_[CLP_PROGRESS]
 

Sum of infeasibilities for algorithm.

Definition at line 1369 of file ClpSimplex.hpp.

double ClpSimplexProgress::realInfeasibility_[CLP_PROGRESS]
 

Sum of real primal infeasibilities for primal.

Definition at line 1371 of file ClpSimplex.hpp.

int ClpSimplexProgress::in_[CLP_CYCLE]
 

For cycle checking.

Definition at line 1375 of file ClpSimplex.hpp.

int ClpSimplexProgress::out_[CLP_CYCLE]
 

Objective values.

Definition at line 1376 of file ClpSimplex.hpp.

char ClpSimplexProgress::way_[CLP_CYCLE]
 

Objective values.

Definition at line 1377 of file ClpSimplex.hpp.

ClpSimplex* ClpSimplexProgress::model_
 

Pointer back to model so we can get information.

Definition at line 1379 of file ClpSimplex.hpp.

int ClpSimplexProgress::numberInfeasibilities_[CLP_PROGRESS]
 

Number of infeasibilities.

Definition at line 1381 of file ClpSimplex.hpp.

int ClpSimplexProgress::iterationNumber_[CLP_PROGRESS]
 

Iteration number at which occurred.

Definition at line 1383 of file ClpSimplex.hpp.

int ClpSimplexProgress::numberTimes_
 

Number of times checked (so won't stop too early).

Definition at line 1385 of file ClpSimplex.hpp.

int ClpSimplexProgress::numberBadTimes_
 

Number of times it looked like loop.

Definition at line 1387 of file ClpSimplex.hpp.

int ClpSimplexProgress::oddState_
 

If things are in an odd state.

Definition at line 1389 of file ClpSimplex.hpp.


The documentation for this class was generated from the following file:
Generated on Sun Jun 11 02:00:28 2006 by  doxygen 1.3.9.1