Main Page
Classes
Files
File List
File Members
opt
build
coinor-vol
coinor-vol-1.1.7
Vol
examples
Volume-LP
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
;
13
VOL_ivector
mrow
;
14
VOL_ivector
mcstrt
;
15
VOL_dvector
dels
;
16
VOL_dvector
dcost
;
17
VOL_dvector
dloc
;
18
VOL_dvector
dupc
;
19
VOL_dvector
dlor
;
20
VOL_dvector
dupr
;
21
VOL_ivector
intnums
;
22
VOL_ivector
check_col
;
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
Generated on Tue Mar 1 2016 22:28:24 by
1.8.4