Clp  1.17.8
List of all members
ClpSimplexProgress Class Reference

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

#include <ClpSolve.hpp>

+ Collaboration diagram for ClpSimplexProgress:

Public Member Functions

Constructors and destructor and copy
 ClpSimplexProgress ()
 Default constructor. More...
 
 ClpSimplexProgress (ClpSimplex *model)
 Constructor from model. More...
 
 ClpSimplexProgress (const ClpSimplexProgress &)
 Copy constructor. More...
 
ClpSimplexProgressoperator= (const ClpSimplexProgress &rhs)
 Assignment operator. This copies the data. More...
 
 ~ClpSimplexProgress ()
 Destructor. More...
 
void reset ()
 Resets as much as possible. More...
 
void fillFromModel (ClpSimplex *model)
 Fill from model. More...
 
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. More...
 
void startCheck ()
 Start check at beginning of whileIterating. More...
 
int cycle (int in, int out, int wayIn, int wayOut)
 Returns cycle length in whileIterating. More...
 
double lastObjective (int back=1) const
 Returns previous objective (if -1) - current if (0) More...
 
void setInfeasibility (double value)
 Set real primal infeasibility and move back. More...
 
double lastInfeasibility (int back=1) const
 Returns real primal infeasibility (if -1) - current if (0) More...
 
int numberInfeasibilities (int back=1) const
 Returns number of primal infeasibilities (if -1) - current if (0) More...
 
void modifyObjective (double value)
 Modify objective e.g. if dual infeasible in dual. More...
 
int lastIterationNumber (int back=1) const
 Returns previous iteration number (if -1) - current if (0) More...
 
void clearIterationNumbers ()
 clears all iteration numbers (to switch off panic) More...
 
void newOddState ()
 Odd state. More...
 
void endOddState ()
 
void clearOddState ()
 
int oddState () const
 
int badTimes () const
 number of bad times More...
 
void clearBadTimes ()
 
int reallyBadTimes () const
 number of really bad times More...
 
void incrementReallyBadTimes ()
 
int timesFlagged () const
 number of times flagged More...
 
void clearTimesFlagged ()
 
void incrementTimesFlagged ()
 

Public Attributes

Data


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

Detailed Description

For saving extra information to see if looping.

Definition at line 310 of file ClpSolve.hpp.

Constructor & Destructor Documentation

◆ ClpSimplexProgress() [1/3]

ClpSimplexProgress::ClpSimplexProgress ( )

Default constructor.

◆ ClpSimplexProgress() [2/3]

ClpSimplexProgress::ClpSimplexProgress ( ClpSimplex model)

Constructor from model.

◆ ClpSimplexProgress() [3/3]

ClpSimplexProgress::ClpSimplexProgress ( const ClpSimplexProgress )

Copy constructor.

◆ ~ClpSimplexProgress()

ClpSimplexProgress::~ClpSimplexProgress ( )

Destructor.

Member Function Documentation

◆ operator=()

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

Assignment operator. This copies the data.

◆ reset()

void ClpSimplexProgress::reset ( )

Resets as much as possible.

◆ fillFromModel()

void ClpSimplexProgress::fillFromModel ( ClpSimplex model)

Fill from model.

◆ looping()

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.

◆ startCheck()

void ClpSimplexProgress::startCheck ( )

Start check at beginning of whileIterating.

◆ cycle()

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

Returns cycle length in whileIterating.

◆ lastObjective()

double ClpSimplexProgress::lastObjective ( int  back = 1) const

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

◆ setInfeasibility()

void ClpSimplexProgress::setInfeasibility ( double  value)

Set real primal infeasibility and move back.

◆ lastInfeasibility()

double ClpSimplexProgress::lastInfeasibility ( int  back = 1) const

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

◆ numberInfeasibilities()

int ClpSimplexProgress::numberInfeasibilities ( int  back = 1) const

Returns number of primal infeasibilities (if -1) - current if (0)

◆ modifyObjective()

void ClpSimplexProgress::modifyObjective ( double  value)

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

◆ lastIterationNumber()

int ClpSimplexProgress::lastIterationNumber ( int  back = 1) const

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

◆ clearIterationNumbers()

void ClpSimplexProgress::clearIterationNumbers ( )

clears all iteration numbers (to switch off panic)

◆ newOddState()

void ClpSimplexProgress::newOddState ( )
inline

Odd state.

Definition at line 361 of file ClpSolve.hpp.

◆ endOddState()

void ClpSimplexProgress::endOddState ( )
inline

Definition at line 365 of file ClpSolve.hpp.

◆ clearOddState()

void ClpSimplexProgress::clearOddState ( )
inline

Definition at line 369 of file ClpSolve.hpp.

◆ oddState()

int ClpSimplexProgress::oddState ( ) const
inline

Definition at line 373 of file ClpSolve.hpp.

◆ badTimes()

int ClpSimplexProgress::badTimes ( ) const
inline

number of bad times

Definition at line 378 of file ClpSolve.hpp.

◆ clearBadTimes()

void ClpSimplexProgress::clearBadTimes ( )
inline

Definition at line 382 of file ClpSolve.hpp.

◆ reallyBadTimes()

int ClpSimplexProgress::reallyBadTimes ( ) const
inline

number of really bad times

Definition at line 387 of file ClpSolve.hpp.

◆ incrementReallyBadTimes()

void ClpSimplexProgress::incrementReallyBadTimes ( )
inline

Definition at line 391 of file ClpSolve.hpp.

◆ timesFlagged()

int ClpSimplexProgress::timesFlagged ( ) const
inline

number of times flagged

Definition at line 396 of file ClpSolve.hpp.

◆ clearTimesFlagged()

void ClpSimplexProgress::clearTimesFlagged ( )
inline

Definition at line 400 of file ClpSolve.hpp.

◆ incrementTimesFlagged()

void ClpSimplexProgress::incrementTimesFlagged ( )
inline

Definition at line 404 of file ClpSolve.hpp.

Member Data Documentation

◆ objective_

double ClpSimplexProgress::objective_[CLP_PROGRESS]

Objective values.

Definition at line 415 of file ClpSolve.hpp.

◆ infeasibility_

double ClpSimplexProgress::infeasibility_[CLP_PROGRESS]

Sum of infeasibilities for algorithm.

Definition at line 417 of file ClpSolve.hpp.

◆ realInfeasibility_

double ClpSimplexProgress::realInfeasibility_[CLP_PROGRESS]

Sum of real primal infeasibilities for primal.

Definition at line 419 of file ClpSolve.hpp.

◆ initialWeight_

double ClpSimplexProgress::initialWeight_

Initial weight for weights.

Definition at line 433 of file ClpSolve.hpp.

◆ in_

int ClpSimplexProgress::in_[CLP_CYCLE]

For cycle checking.

Definition at line 437 of file ClpSolve.hpp.

◆ out_

int ClpSimplexProgress::out_[CLP_CYCLE]

Definition at line 438 of file ClpSolve.hpp.

◆ way_

char ClpSimplexProgress::way_[CLP_CYCLE]

Definition at line 439 of file ClpSolve.hpp.

◆ model_

ClpSimplex* ClpSimplexProgress::model_

Pointer back to model so we can get information.

Definition at line 441 of file ClpSolve.hpp.

◆ numberInfeasibilities_

int ClpSimplexProgress::numberInfeasibilities_[CLP_PROGRESS]

Number of infeasibilities.

Definition at line 443 of file ClpSolve.hpp.

◆ iterationNumber_

int ClpSimplexProgress::iterationNumber_[CLP_PROGRESS]

Iteration number at which occurred.

Definition at line 445 of file ClpSolve.hpp.

◆ numberTimes_

int ClpSimplexProgress::numberTimes_

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

Definition at line 453 of file ClpSolve.hpp.

◆ numberBadTimes_

int ClpSimplexProgress::numberBadTimes_

Number of times it looked like loop.

Definition at line 455 of file ClpSolve.hpp.

◆ numberReallyBadTimes_

int ClpSimplexProgress::numberReallyBadTimes_

Number really bad times.

Definition at line 457 of file ClpSolve.hpp.

◆ numberTimesFlagged_

int ClpSimplexProgress::numberTimesFlagged_

Number of times no iterations as flagged.

Definition at line 459 of file ClpSolve.hpp.

◆ oddState_

int ClpSimplexProgress::oddState_

If things are in an odd state.

Definition at line 461 of file ClpSolve.hpp.


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