Ignore:
Timestamp:
Apr 28, 2008 11:41:02 AM (11 years ago)
Author:
forrest
Message:

changes to try and improve performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcNode.hpp

    r915 r931  
    577577                       OsiBranchingInformation * usefulInfo,
    578578                       int branchState);
     579  /** Create a branching object for the node
     580
     581    The routine scans the object list of the model and selects a set of
     582    unsatisfied objects as candidates for branching. It then solves a
     583    series of problems and a CbcGeneral branch object is installed.
     584
     585    If evaluation determines that an object is infeasible,
     586    the routine returns immediately.
     587
     588    Return value:
     589    <ul>
     590      <li>  0: A branching object has been installed
     591      <li> -2: An infeasible object was discovered
     592    </ul>
     593  */
     594  int chooseClpBranch (CbcModel * model,
     595                       CbcNode * lastNode);
    579596  int analyze(CbcModel * model,double * results);
    580597  /// Decrement active cut counts
     
    599616  int branch(OsiSolverInterface * solver);
    600617
     618  /** Double checks in case node can change its mind!
     619      Returns objective value
     620      Can change objective etc */
     621  double checkIsCutoff(double cutoff);
    601622  // Information to make basis and bounds
    602623  inline CbcNodeInfo * nodeInfo() const
     
    627648  /// Get the number of objects unsatisfied at this node.
    628649  inline int numberUnsatisfied() const
    629   {return numberUnsatisfied_;}
    630   /// Sum of "infeasibilities" reported by each object
     650  { return numberUnsatisfied_;}
     651  /// Set the number of objects unsatisfied at this node.
     652  inline void setNumberUnsatisfied(int value)
     653  { numberUnsatisfied_ = value;}
     654  /// Get sum of "infeasibilities" reported by each object
    631655  inline double sumInfeasibilities() const
    632656  { return sumInfeasibilities_;}
     657  /// Set sum of "infeasibilities" reported by each object
     658  inline void setSumInfeasibilities(double value)
     659  { sumInfeasibilities_ = value;}
    633660  // Guessed objective value (for solution)
    634661  inline double guessedObjectiveValue() const
     
    664691  /// Print
    665692  void print() const;
     693  /// Debug
     694  inline void checkInfo() const
     695  { assert (nodeInfo_->numberBranchesLeft()==
     696            branch_->numberBranchesLeft());}
    666697
    667698private:
Note: See TracChangeset for help on using the changeset viewer.