#include <ClpSolve.hpp>
Collaboration diagram for ClpSimplexProgress:

Public Member Functions | |
Constructors and destructor and copy | |
| ClpSimplexProgress () | |
| Default constructor. | |
| ClpSimplexProgress (ClpSimplex *model) | |
| Constructor from model. | |
| ClpSimplexProgress (const ClpSimplexProgress &) | |
| Copy constructor. | |
| ClpSimplexProgress & | operator= (const ClpSimplexProgress &rhs) |
| Assignment operator. This copies the data. | |
| ~ClpSimplexProgress () | |
| Destructor. | |
| void | reset () |
| Resets as much as possible. | |
| void | fillFromModel (ClpSimplex *model) |
| Fill from model. | |
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 () |
| void | clearOddState () |
| int | oddState () const |
| int | badTimes () const |
| number of bad times | |
| void | clearBadTimes () |
| int | reallyBadTimes () const |
| number of really bad times | |
| void | incrementReallyBadTimes () |
| int | timesFlagged () const |
| number of times flagged | |
| void | clearTimesFlagged () |
| void | incrementTimesFlagged () |
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. | |
| double | initialWeight_ |
| Initial weight for weights. | |
| int | in_ [CLP_CYCLE] |
| For cycle checking. | |
| int | out_ [CLP_CYCLE] |
| char | way_ [CLP_CYCLE] |
| ClpSimplex * | model_ |
| 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 | numberReallyBadTimes_ |
| Number really bad times. | |
| int | numberTimesFlagged_ |
| Number of times no iterations as flagged. | |
| int | oddState_ |
| If things are in an odd state. | |
Definition at line 244 of file ClpSolve.hpp.
| ClpSimplexProgress::ClpSimplexProgress | ( | ) |
Default constructor.
| ClpSimplexProgress::ClpSimplexProgress | ( | ClpSimplex * | model | ) |
Constructor from model.
| ClpSimplexProgress::ClpSimplexProgress | ( | const ClpSimplexProgress & | ) |
Copy constructor.
| ClpSimplexProgress::~ClpSimplexProgress | ( | ) |
Destructor.
| ClpSimplexProgress& ClpSimplexProgress::operator= | ( | const ClpSimplexProgress & | rhs | ) |
Assignment operator. This copies the data.
| void ClpSimplexProgress::reset | ( | ) |
Resets as much as possible.
| void ClpSimplexProgress::fillFromModel | ( | ClpSimplex * | model | ) |
Fill from model.
| 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] |
| void ClpSimplexProgress::endOddState | ( | ) | [inline] |
Definition at line 298 of file ClpSolve.hpp.
| void ClpSimplexProgress::clearOddState | ( | ) | [inline] |
Definition at line 301 of file ClpSolve.hpp.
| int ClpSimplexProgress::oddState | ( | ) | const [inline] |
Definition at line 304 of file ClpSolve.hpp.
| int ClpSimplexProgress::badTimes | ( | ) | const [inline] |
| void ClpSimplexProgress::clearBadTimes | ( | ) | [inline] |
Definition at line 311 of file ClpSolve.hpp.
| int ClpSimplexProgress::reallyBadTimes | ( | ) | const [inline] |
| void ClpSimplexProgress::incrementReallyBadTimes | ( | ) | [inline] |
Definition at line 318 of file ClpSolve.hpp.
| int ClpSimplexProgress::timesFlagged | ( | ) | const [inline] |
| void ClpSimplexProgress::clearTimesFlagged | ( | ) | [inline] |
Definition at line 325 of file ClpSolve.hpp.
| void ClpSimplexProgress::incrementTimesFlagged | ( | ) | [inline] |
Definition at line 328 of file ClpSolve.hpp.
| double ClpSimplexProgress::objective_[CLP_PROGRESS] |
| double ClpSimplexProgress::infeasibility_[CLP_PROGRESS] |
| double ClpSimplexProgress::realInfeasibility_[CLP_PROGRESS] |
| int ClpSimplexProgress::in_[CLP_CYCLE] |
| int ClpSimplexProgress::out_[CLP_CYCLE] |
Definition at line 361 of file ClpSolve.hpp.
| char ClpSimplexProgress::way_[CLP_CYCLE] |
Definition at line 362 of file ClpSolve.hpp.
| int ClpSimplexProgress::numberInfeasibilities_[CLP_PROGRESS] |
| int ClpSimplexProgress::iterationNumber_[CLP_PROGRESS] |
1.4.7