Ignore:
Timestamp:
Jun 26, 2007 5:17:15 AM (12 years ago)
Author:
forrest
Message:

trunk from branches/devel

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        1 MSVisualStudio   https://projects.coin-or.org/svn/MSVisualStudio/trunk/ExternalsDirs/Cbc
        2 BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.5
         1MSVisualStudio   https://projects.coin-or.org/svn/MSVisualStudio/branches/devel/ExternalsDirs/Cbc
         2BuildTools    https://projects.coin-or.org/svn/BuildTools/trunk
        33ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.0
         4ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
         5ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
        46Data/Netlib   https://projects.coin-or.org/svn/Data/stable/1.0/Netlib
        57Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
  • trunk/Cbc/examples/CbcBranchUser.hpp

    r2 r640  
    55
    66#include "CbcBranchBase.hpp"
     7#include "CbcBranchActual.hpp"
    78
    89/** Branching decision user class */
     
    5556};
    5657
     58/// Define a single integer class where branching is forced until fixed
     59
     60
     61class CbcSimpleIntegerFixed : public CbcSimpleInteger {
     62
     63public:
     64
     65  // Default Constructor
     66  CbcSimpleIntegerFixed ();
     67
     68  // Useful constructor - passed integer index and model index
     69  CbcSimpleIntegerFixed (CbcModel * model, int iColumn, double breakEven=0.5);
     70 
     71  // Constructor from simple
     72  CbcSimpleIntegerFixed (const CbcSimpleInteger & simple);
     73 
     74  // Copy constructor
     75  CbcSimpleIntegerFixed ( const CbcSimpleIntegerFixed &);
     76   
     77  /// Clone
     78  virtual CbcObject * clone() const;
     79
     80  // Assignment operator
     81  CbcSimpleIntegerFixed & operator=( const CbcSimpleIntegerFixed& rhs);
     82
     83  // Destructor
     84  ~CbcSimpleIntegerFixed ();
     85 
     86  /// Infeasibility - large is 0.5
     87  virtual double infeasibility(int & preferredWay) const;
     88
     89  /** Creates a branching object
     90
     91    The preferred direction is set by \p way, -1 for down, +1 for up.
     92  */
     93  //virtual CbcBranchingObject * createBranch(int way) ;
     94  /** Create a branching object and indicate which way to branch first.
     95     
     96      The branching object has to know how to create branches (fix
     97      variables, etc.)
     98  */
     99  virtual CbcBranchingObject * createBranch(OsiSolverInterface * solver,
     100                                            const OsiBranchingInformation * info, int way) ;
     101
     102protected:
     103  /// data
     104};
     105
    57106#endif
Note: See TracChangeset for help on using the changeset viewer.