Ignore:
Timestamp:
Jul 21, 2004 4:36:05 PM (15 years ago)
Author:
forrest
Message:

Some quadratic stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ClpLinearObjective.hpp

    r225 r393  
    2222      also returns an offset (to be added to current one)
    2323      If refresh is false then uses last solution
     24      Uses model for scaling
     25      includeLinear 0 - no, 1 as is, 2 as feasible
    2426  */
    25   virtual double * gradient(const double * solution, double & offset,bool refresh);
     27  virtual double * gradient(const ClpSimplex * model,
     28                            const double * solution, double & offset,bool refresh,
     29                            int includeLinear=2);
     30  /** Returns reduced gradient.Returns an offset (to be added to current one).
     31  */
     32  virtual double reducedGradient(ClpSimplex * model, double * region,
     33                                 bool useFeasibleCosts);
     34  /** Returns step length which gives minimum of objective for
     35      solution + theta * change vector up to maximum theta.
     36
     37      arrays are numberColumns+numberRows
     38      Also sets current objective, predicted and at maximumTheta
     39  */
     40  virtual double stepLength(ClpSimplex * model,
     41                            const double * solution,
     42                            const double * change,
     43                            double maximumTheta,
     44                            double & currentObj,
     45                            double & predictedObj,
     46                            double & thetaObj);
    2647  /// Resize objective
    2748  virtual void resize(int newNumberColumns) ;
    2849  /// Delete columns in  objective
    2950  virtual void deleteSome(int numberToDelete, const int * which) ;
     51  /// Scale objective
     52  virtual void reallyScale(const double * columnScale) ;
    3053 
    3154  //@}
Note: See TracChangeset for help on using the changeset viewer.