Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/CbcSolver.hpp

    r1902 r2004  
    1010
    1111    This class is currently an orphan. With the removal of all code flagged
    12     with the NEWS_STYLE_SOLVER, this class is never instantiated (and cannot
     12    with the NEW_STYLE_SOLVER, this class is never instantiated (and cannot
    1313    be instantiated). It is available to be coopted as a top-level object
    1414    wrapping the current CbcMain0 and CbcMain1, should that appear to be a
     
    237237//#############################################################################
    238238
    239 /// Structure to hold useful arrays
    240 typedef struct {
    241     // Priorities
    242     int * priorities_;
    243     // SOS priorities
    244     int * sosPriority_;
    245     // Direction to branch first
    246     int * branchDirection_;
    247     // Input solution
    248     double * primalSolution_;
    249     // Down pseudo costs
    250     double * pseudoDown_;
    251     // Up pseudo costs
    252     double * pseudoUp_;
    253 } CbcSolverUsefulData;
    254 
     239/**
     240   The CbcSolver class was taken out at a 9/12/09 meeting
     241   This is a feeble replacement.
     242   At present everything is public
     243*/
     244class CbcSolverUsefulData {
     245
     246public:
     247    ///@name Constructors and destructors etc
     248    //@{
     249    /// Default Constructor
     250    CbcSolverUsefulData();
     251
     252    /** Copy constructor .
     253     */
     254    CbcSolverUsefulData(const CbcSolverUsefulData & rhs);
     255
     256    /// Assignment operator
     257    CbcSolverUsefulData & operator=(const CbcSolverUsefulData& rhs);
     258
     259    /// Destructor
     260    ~CbcSolverUsefulData ();
     261    //@}
     262
     263    ///@name Member data
     264    //@{
     265    // For time
     266    double totalTime_;
     267    // Parameters
     268    CbcOrClpParam parameters_[CBCMAXPARAMETERS];
     269    // Printing
     270    bool noPrinting_;
     271    // Whether to use signal handler
     272    bool useSignalHandler_;
     273    // Number of Parameters
     274    int numberParameters_;
     275    // Default pump tuning
     276    int initialPumpTune_;
     277    //@}
     278};
     279/// And this uses it
     280// When we want to load up CbcModel with options first
     281void CbcMain0 (CbcModel & babSolver,CbcSolverUsefulData & solverData);
     282int CbcMain1 (int argc, const char *argv[], CbcModel & babSolver, int (CbcModel * currentSolver, int whereFrom),CbcSolverUsefulData & solverData);
     283
     284//#############################################################################
    255285
    256286/*! \brief A class to allow the use of unknown user functionality
Note: See TracChangeset for help on using the changeset viewer.