lpc.h
Go to the documentation of this file.
1 #ifndef __LPC_H__
2 #define __LPC_H__
3 
4 #include <vector>
5 #include "VolVolume.hpp"
6 
7 using std::vector;
8 
9 class VOL_lp {
10  public:
11  int ncols, nrows, nels;
12  int maxcols, nints;
23  vector<int> mr;
24  vector<int> mc;
25  vector<double> els;
26  vector<double> cost;
27  VOL_lp();
28  ~VOL_lp(){ }
29  void build_col(int row, double el);
30  void rhs(int row, double lb, double ub);
31  void finish_up();
32  int n_cols(){ return ncols; }
33  void set_nrows( const int n);
34  void intcol(int j);
35  void addobj( double xx);
36  void addel(int row, double el);
37  void startcol();
38  void ub(const int i, const double x);
39  void lb(const int i, const double x);
40  void init_bounds( const int n);
41 };
42 
43 #endif