ClpLsqr.hpp
Go to the documentation of this file.
1 /* $Id: ClpLsqr.hpp 1665 2011-01-04 17:55:54Z lou $ */
2 // Copyright (C) 2003, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef ClpLsqr_H_
7 #define ClpLsqr_H_
8 
9 #include "CoinDenseVector.hpp"
10 
11 #include "ClpInterior.hpp"
12 
13 
76 class ClpLsqr {
77 private:
80 
81 
82 public:
85  int nrows_;
88  int ncols_;
92  double *diag1_;
94  double diag2_;
96 
99  ClpLsqr();
100 
102  ClpLsqr(ClpInterior *model);
104  ClpLsqr(const ClpLsqr &);
106  ClpLsqr & operator=(const ClpLsqr & rhs);
108  ~ClpLsqr();
110 
113  bool setParam(char *parmName, int parmValue);
117  double damp, double atol, double btol, double conlim, int itnlim,
118  bool show, Info info, CoinDenseVector<double> &x , int *istop,
119  int *itn, Outfo *outfo, bool precon, CoinDenseVector<double> &Pr );
122 
125  void borrowDiag1(double * array) {
126  diag1_ = array;
127  };
129 };
130 #endif
131 
132 
133 
134 
ClpLsqr & operator=(const ClpLsqr &rhs)
Assignment operator. This copies the data.
ClpInterior * model_
Pointer to Model object for this instance.
Definition: ClpLsqr.hpp:90
******** DATA to be moved into protected section of ClpInterior
Definition: ClpInterior.hpp:27
Dense Vector.
******** DATA to be moved into protected section of ClpInterior
Definition: ClpInterior.hpp:35
This solves LPs using interior point methods.
Definition: ClpInterior.hpp:72
bool setParam(char *parmName, int parmValue)
Set an int parameter.
void borrowDiag1(double *array)
diag1 - we just borrow as it is part of a CoinDenseVector&lt;double&gt;
Definition: ClpLsqr.hpp:125
ClpLsqr()
Default constructor.
int nrows_
Row dimension of matrix.
Definition: ClpLsqr.hpp:86
This class implements LSQR.
Definition: ClpLsqr.hpp:76
int ncols_
Column dimension of matrix.
Definition: ClpLsqr.hpp:88
double * diag1_
Diagonal array 1.
Definition: ClpLsqr.hpp:92
void do_lsqr(CoinDenseVector< double > &b, double damp, double atol, double btol, double conlim, int itnlim, bool show, Info info, CoinDenseVector< double > &x, int *istop, int *itn, Outfo *outfo, bool precon, CoinDenseVector< double > &Pr)
Call the Lsqr algorithm.
double diag2_
Constant diagonal 2.
Definition: ClpLsqr.hpp:94
~ClpLsqr()
Destructor.
void matVecMult(int, CoinDenseVector< double > *, CoinDenseVector< double > *)
Matrix-vector multiply - implemented by user.