Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
COIN_common_functions.h
1#ifndef COIN_COMMON_FUNCTIONS_H
2#define COIN_COMMON_FUNCTIONS_H
3#include <vector>
4
5#include "CoinPackedMatrix.hpp"
6
7namespace coin_common
8{
9
10void fill_rows_from_COIN_matrix(const CoinPackedMatrix& matrix,
11 int* mstart,
12 int* mclind,
13 double* dmatval,
14 int* nels,
15 int first,
16 int last);
17
18void fill_row_type_from_row_bounds(const double* rowLower,
19 const double* rowUpper,
20 char* qrtype,
21 int first,
22 int last);
23
24void fill_rhs_from_bounds(const double* rowLower,
25 const double* rowUpper,
26 double* rhs,
27 int first,
28 int last);
29void fill_row_bounds_from_new_rows_data(std::vector<double>& rowLower,
30 std::vector<double>& rowUpper,
31 int newrows,
32 const char* qrtype,
33 const double* rhs);
34} // namespace coin_common
35
36#endif // COIN_COMMON_FUNCTIONS_H