Vol  1.5.4
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros
lpc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2000, 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  $Id$
7 */
8 
9 #ifndef __LPC_H__
10 #define __LPC_H__
11 
12 #include <vector>
13 #include "VolVolume.hpp"
14 
15 using std::vector;
16 
17 class VOL_lp {
18  public:
19  int ncols, nrows, nels;
20  int maxcols, nints;
31  vector<int> mr;
32  vector<int> mc;
33  vector<double> els;
34  vector<double> cost;
35  VOL_lp();
36  ~VOL_lp(){ }
37  void build_col(int row, double el);
38  void rhs(int row, double lb, double ub);
39  void finish_up();
40  int n_cols(){ return ncols; }
41  void set_nrows( const int n);
42  void intcol(int j);
43  void addobj( double xx);
44  void addel(int row, double el);
45  void startcol();
46  void ub(const int i, const double x);
47  void lb(const int i, const double x);
48  void init_bounds( const int n);
49 };
50 
51 #endif
void set_nrows(const int n)
VOL_ivector mrow
Definition: lpc.h:21
int nrows
Definition: lpc.h:19
vector< int > mc
Definition: lpc.h:32
void addobj(double xx)
void ub(const int i, const double x)
int n_cols()
Definition: lpc.h:40
void init_bounds(const int n)
VOL_ivector check_col
Definition: lpc.h:30
void addel(int row, double el)
VOL_dvector dels
Definition: lpc.h:23
vector< double > cost
Definition: lpc.h:34
VOL_ivector intnums
Definition: lpc.h:29
void build_col(int row, double el)
VOL_dvector dupr
Definition: lpc.h:28
~VOL_lp()
Definition: lpc.h:36
vector< int > mr
Definition: lpc.h:31
void intcol(int j)
VOL_dvector dloc
Definition: lpc.h:25
int maxcols
Definition: lpc.h:20
VOL_dvector dcost
Definition: lpc.h:24
void lb(const int i, const double x)
int nints
Definition: lpc.h:20
void finish_up()
int ncols
Definition: lpc.h:19
int nels
Definition: lpc.h:19
vector of ints.
Definition: VolVolume.hpp:242
vector< double > els
Definition: lpc.h:33
vector of doubles.
Definition: VolVolume.hpp:148
void rhs(int row, double lb, double ub)
VOL_dvector dupc
Definition: lpc.h:26
Definition: lpc.h:17
VOL_ivector mcstrt
Definition: lpc.h:22
void startcol()
VOL_dvector dlor
Definition: lpc.h:27