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
Definition: lpc.h:9
vector of ints.
Definition: VolVolume.hpp:237
vector< int > mc
Definition: lpc.h:24
VOL_ivector check_col
Definition: lpc.h:22
void intcol(int j)
void addobj(double xx)
VOL_dvector dels
Definition: lpc.h:15
~VOL_lp()
Definition: lpc.h:28
void startcol()
VOL_ivector mcstrt
Definition: lpc.h:14
vector< double > els
Definition: lpc.h:25
int ncols
Definition: lpc.h:11
vector of doubles.
Definition: VolVolume.hpp:143
void build_col(int row, double el)
VOL_dvector dupr
Definition: lpc.h:20
VOL_dvector dupc
Definition: lpc.h:18
void addel(int row, double el)
VOL_dvector dlor
Definition: lpc.h:19
void rhs(int row, double lb, double ub)
int maxcols
Definition: lpc.h:12
void lb(const int i, const double x)
int nrows
Definition: lpc.h:11
VOL_dvector dloc
Definition: lpc.h:17
int nints
Definition: lpc.h:12
void init_bounds(const int n)
vector< double > cost
Definition: lpc.h:26
void finish_up()
int n_cols()
Definition: lpc.h:32
VOL_dvector dcost
Definition: lpc.h:16
VOL_ivector intnums
Definition: lpc.h:21
void ub(const int i, const double x)
int nels
Definition: lpc.h:11
vector< int > mr
Definition: lpc.h:23
VOL_ivector mrow
Definition: lpc.h:13
void set_nrows(const int n)