40 #include <OpenMS/OpenMSConfig.h> 41 #include <OpenMS/config.h> 50 #ifndef GLP_PROB_DEFINED 51 #define GLP_PROB_DEFINED 54 #if OPENMS_GLPK_VERSION_MINOR < 48 57 double _opaque_prob[100];
76 message_level(3), branching_tech(4), backtrack_tech(3),
77 preprocessing_tech(2), enable_feas_pump_heuristic(true), enable_gmi_cuts(true),
78 enable_mir_cuts(true), enable_cov_cuts(true), enable_clq_cuts(true), mip_gap(0.0),
79 time_limit((
std::numeric_limits<
Int>::max)()), output_freq(5000), output_delay(10000), enable_presolve(true),
80 enable_binarization(true)
133 #if COINOR_SOLVER == 1 151 Int addRow(std::vector<Int> row_indices, std::vector<double> row_values,
const String& name);
155 Int addColumn(std::vector<Int> column_indices, std::vector<double> column_values,
const String& name);
169 Int addRow(std::vector<Int>& row_indices, std::vector<double>& row_values,
const String& name,
double lower_bound,
double upper_bound, Type type);
181 Int addColumn(std::vector<Int>& column_indices, std::vector<double>& column_values,
const String& name,
double lower_bound,
double upper_bound, Type type);
184 void deleteRow(
Int index);
186 void setColumnName(
Int index,
const String& name);
196 double getColumnUpperBound(
Int index);
198 double getColumnLowerBound(
Int index);
200 double getRowUpperBound(
Int index);
202 double getRowLowerBound(
Int index);
204 void setRowName(
Int index,
const String& name);
214 void setColumnBounds(
Int index,
double lower_bound,
double upper_bound, Type type);
224 void setRowBounds(
Int index,
double lower_bound,
double upper_bound, Type type);
232 void setColumnType(
Int index, VariableType type);
240 VariableType getColumnType(
Int index);
243 void setObjective(
Int index,
double obj_value);
245 double getObjective(
Int index);
252 void setObjectiveSense(Sense sense);
253 Sense getObjectiveSense();
256 Int getNumberOfColumns();
258 Int getNumberOfRows();
260 void setElement(
Int row_index,
Int column_index,
double value);
261 double getElement(
Int row_index,
Int column_index);
278 void writeProblem(
const String& filename,
const WriteFormat format)
const;
290 Int solve(SolverParam& solver_param,
const Size verbose_level = 0);
297 SolverStatus getStatus();
300 double getObjectiveValue();
301 double getColumnValue(
Int index);
303 Int getNumberOfNonZeroEntriesInRow(
Int idx);
304 void getMatrixRow(
Int idx, std::vector<Int>& indexes);
308 void setSolver(
const SOLVER s);
311 SOLVER getSolver()
const;
314 #if COINOR_SOLVER == 1 316 std::vector<double> solution_;
bool enable_gmi_cuts
Definition: LPWrapper.h:89
WriteFormat
Definition: LPWrapper.h:123
Int output_freq
Definition: LPWrapper.h:95
A more convenient string class.
Definition: String.h:57
SOLVER
Definition: LPWrapper.h:130
Definition: LPWrapper.h:106
double mip_gap
Definition: LPWrapper.h:93
Definition: LPWrapper.h:105
Definition: LPWrapper.h:126
bool enable_clq_cuts
Definition: LPWrapper.h:92
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Struct that holds the parameters of the LP solver.
Definition: LPWrapper.h:73
Definition: LPWrapper.h:67
Sense
Definition: LPWrapper.h:117
bool enable_cov_cuts
Definition: LPWrapper.h:91
Int time_limit
Definition: LPWrapper.h:94
Int message_level
Definition: LPWrapper.h:84
Int branching_tech
Definition: LPWrapper.h:85
SolverParam()
Definition: LPWrapper.h:75
bool enable_presolve
Definition: LPWrapper.h:97
Definition: LPWrapper.h:113
SOLVER solver_
Definition: LPWrapper.h:321
Int backtrack_tech
Definition: LPWrapper.h:86
Type
Definition: LPWrapper.h:101
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
SolverStatus
Definition: LPWrapper.h:138
Definition: LPWrapper.h:104
Int preprocessing_tech
Definition: LPWrapper.h:87
glp_prob * lp_problem_
Definition: LPWrapper.h:319
VariableType
Definition: LPWrapper.h:110
int Int
Signed integer type.
Definition: Types.h:102
bool enable_mir_cuts
Definition: LPWrapper.h:90
bool enable_feas_pump_heuristic
Definition: LPWrapper.h:88
Int output_delay
Definition: LPWrapper.h:96
bool enable_binarization
Definition: LPWrapper.h:98
Definition: LPWrapper.h:55