Vol
1.5.4
Vol
examples
Volume-LP
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
;
21
VOL_ivector
mrow
;
22
VOL_ivector
mcstrt
;
23
VOL_dvector
dels
;
24
VOL_dvector
dcost
;
25
VOL_dvector
dloc
;
26
VOL_dvector
dupc
;
27
VOL_dvector
dlor
;
28
VOL_dvector
dupr
;
29
VOL_ivector
intnums
;
30
VOL_ivector
check_col
;
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
VOL_dvector
vector of doubles.
Definition:
VolVolume.hpp:148
VOL_lp::dcost
VOL_dvector dcost
Definition:
lpc.h:24
VOL_lp::els
vector< double > els
Definition:
lpc.h:33
VOL_lp::intcol
void intcol(int j)
VOL_lp::mcstrt
VOL_ivector mcstrt
Definition:
lpc.h:22
VOL_lp::n_cols
int n_cols()
Definition:
lpc.h:40
VOL_lp::build_col
void build_col(int row, double el)
VOL_lp::nels
int nels
Definition:
lpc.h:19
VOL_lp::check_col
VOL_ivector check_col
Definition:
lpc.h:30
VOL_lp::dupr
VOL_dvector dupr
Definition:
lpc.h:28
VOL_lp::lb
void lb(const int i, const double x)
VOL_lp::rhs
void rhs(int row, double lb, double ub)
VOL_lp::addel
void addel(int row, double el)
VOL_lp::cost
vector< double > cost
Definition:
lpc.h:34
VOL_lp::mc
vector< int > mc
Definition:
lpc.h:32
VOL_lp::finish_up
void finish_up()
VOL_lp::nrows
int nrows
Definition:
lpc.h:19
VOL_lp
Definition:
lpc.h:17
VOL_lp::dels
VOL_dvector dels
Definition:
lpc.h:23
VOL_lp::~VOL_lp
~VOL_lp()
Definition:
lpc.h:36
VOL_lp::VOL_lp
VOL_lp()
VOL_lp::init_bounds
void init_bounds(const int n)
VOL_lp::mrow
VOL_ivector mrow
Definition:
lpc.h:21
VOL_lp::dlor
VOL_dvector dlor
Definition:
lpc.h:27
VOL_lp::set_nrows
void set_nrows(const int n)
VOL_lp::addobj
void addobj(double xx)
VOL_lp::dupc
VOL_dvector dupc
Definition:
lpc.h:26
VOL_lp::mr
vector< int > mr
Definition:
lpc.h:31
VOL_lp::dloc
VOL_dvector dloc
Definition:
lpc.h:25
VOL_lp::ub
void ub(const int i, const double x)
VolVolume.hpp
VOL_lp::maxcols
int maxcols
Definition:
lpc.h:20
VOL_lp::intnums
VOL_ivector intnums
Definition:
lpc.h:29
VOL_ivector
vector of ints.
Definition:
VolVolume.hpp:242
VOL_lp::startcol
void startcol()
VOL_lp::nints
int nints
Definition:
lpc.h:20
VOL_lp::ncols
int ncols
Definition:
lpc.h:19
Generated by
1.8.17