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

ClpSolve Class Reference

#include <ClpSolve.hpp>

List of all members.

Public Types

enum  SolveType {
  useDual = 0, usePrimal, usePrimalorSprint, useBarrier,
  automatic
}
enum  PresolveType { presolveOn = 0, presolveOff, presolveNumber }

Public Member Functions

Constructors and destructor and copy
 ClpSolve ()
 Default constructor.

 ClpSolve (const ClpSolve &)
 Copy constructor.

ClpSolveoperator= (const ClpSolve &rhs)
 Assignment operator. This copies the data.

 ~ClpSolve ()
 Destructor.

Functions most useful to user
void setSpecialOption (int which, int value, int extraInfo=-1)
int getSpecialOption (int which) const
void setSolveType (SolveType method, int extraInfo=-1)
 Solve types.

SolveType getSolveType ()
void setPresolveType (PresolveType amount, int extraInfo=-1)
PresolveType getPresolveType ()
int getPresolvePasses () const
int getExtraInfo (int which) const
 Extra info for idiot (or sprint).


Private Attributes

data.
SolveType method_
 Solve type.

PresolveType presolveType_
 Presolve type.

int numberPasses_
 Amount of presolve.

int options_ [4]
 Options.

int extraInfo_ [4]
 Extra information.


Detailed Description

This is a very simple class to guide algorithms. It is used to tidy up passing parameters to initialSolve and maybe for output from that

Definition at line 19 of file ClpSolve.hpp.


Member Enumeration Documentation

enum ClpSolve::SolveType
 

enums for solve function

Definition at line 24 of file ClpSolve.hpp.

00024                  {
00025     useDual=0,
00026     usePrimal,
00027     usePrimalorSprint,
00028     useBarrier,
00029     automatic
00030   };


Member Function Documentation

void ClpSolve::setSpecialOption int  which,
int  value,
int  extraInfo = -1
 

which translation is: which: 0 - startup in Dual (nothing if basis exists).: 0 - no basis 1 - crash 2 - use initiative about idiot! but no crash 1 - startup in Primal (nothing if basis exists): 0 - use initiative 1 - use crash 2 - use idiot and look at further info 3 - use sprint and look at further info 4 - use all slack 5 - use initiative but no idiot 6 - use initiative but no sprint 7 - use initiative but no crash 8 - do allslack or idiot 9 - do allslack or sprint 2 - interrupt handling - 0 yes, 1 no (for threadsafe) 3 - whether to make +- 1matrix - 0 yes, 1 no

Definition at line 1043 of file ClpSolve.cpp.

References extraInfo_, and options_.

01044 {
01045   options_[which]=value;
01046   extraInfo_[which]=extraInfo;
01047 }


The documentation for this class was generated from the following files:
Generated on Wed Dec 3 14:37:50 2003 for CLP by doxygen 1.3.5