|
OpenMS
2.5.0
|
Go to the documentation of this file.
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(
const std::vector<Int>& row_indices,
const std::vector<double>& row_values,
const String& name);
155 Int addColumn(
const std::vector<Int>& column_indices,
const std::vector<double>& column_values,
const String& name);
169 Int addRow(
const std::vector<Int>& row_indices,
const std::vector<double>& row_values,
170 const String& name,
double lower_bound,
double upper_bound, Type type);
182 Int addColumn(
const std::vector<Int>& column_indices,
const std::vector<double>& column_values,
const String& name,
double lower_bound,
double upper_bound, Type type);
185 void deleteRow(
Int index);
187 void setColumnName(
Int index,
const String& name);
197 double getColumnUpperBound(
Int index);
199 double getColumnLowerBound(
Int index);
201 double getRowUpperBound(
Int index);
203 double getRowLowerBound(
Int index);
205 void setRowName(
Int index,
const String& name);
215 void setColumnBounds(
Int index,
double lower_bound,
double upper_bound, Type type);
225 void setRowBounds(
Int index,
double lower_bound,
double upper_bound, Type type);
233 void setColumnType(
Int index, VariableType type);
241 VariableType getColumnType(
Int index);
244 void setObjective(
Int index,
double obj_value);
246 double getObjective(
Int index);
253 void setObjectiveSense(Sense sense);
254 Sense getObjectiveSense();
257 Int getNumberOfColumns();
259 Int getNumberOfRows();
261 void setElement(
Int row_index,
Int column_index,
double value);
262 double getElement(
Int row_index,
Int column_index);
271 void readProblem(
const String& filename,
const String& format);
279 void writeProblem(
const String& filename,
const WriteFormat format)
const;
291 Int solve(SolverParam& solver_param,
const Size verbose_level = 0);
298 SolverStatus getStatus();
301 double getObjectiveValue();
302 double getColumnValue(
Int index);
304 Int getNumberOfNonZeroEntriesInRow(
Int idx);
305 void getMatrixRow(
Int idx, std::vector<Int>& indexes);
309 void setSolver(
const SOLVER s);
312 SOLVER getSolver()
const;
315 #if COINOR_SOLVER == 1
316 CoinModel * model_ =
nullptr;
317 std::vector<double> solution_;
Consumer class that writes MS data to disk using the mzML format.
Definition: MSDataWritingConsumer.h:88
Definition: LPWrapper.h:104
Base class for TOPP applications.
Definition: TOPPBase.h:144
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
bool enable_gmi_cuts
Definition: LPWrapper.h:89
A method or algorithm argument contains illegal values.
Definition: Exception.h:648
Type
Definition: LPWrapper.h:101
SolverStatus
Definition: LPWrapper.h:138
Int output_freq
Definition: LPWrapper.h:95
bool enable_clq_cuts
Definition: LPWrapper.h:92
bool enable_feas_pump_heuristic
Definition: LPWrapper.h:88
A class to load an indexedmzML file.
Definition: IndexedMzMLFileLoader.h:53
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:58
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
void pickExperiment(const PeakMap &input, PeakMap &output, const bool check_spectrum_type=true) const
Applies the peak-picking algorithm to a map (MSExperiment). This method picks peaks for each scan in ...
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static bool contains(const std::vector< T > &container, const E &elem)
Checks whether the element elem is contained in the given container.
Definition: ListUtils.h:146
Definition: LPWrapper.h:67
double mip_gap
Definition: LPWrapper.h:93
Int message_level
Definition: LPWrapper.h:84
WriteFormat
Definition: LPWrapper.h:123
SolverParam()
Definition: LPWrapper.h:75
bool enable_cov_cuts
Definition: LPWrapper.h:91
UInt getMSLevel() const
Returns the MS level.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
This class implements a fast peak-picking algorithm best suited for high resolution MS data (FT-ICR-M...
Definition: PeakPickerHiRes.h:73
Int time_limit
Definition: LPWrapper.h:94
Definition: LPWrapper.h:106
Representation of a mass spectrometry experiment on disk.
Definition: OnDiscMSExperiment.h:68
bool load(const String &filename, OnDiscPeakMap &exp)
Load a file.
Definition: IndexedMzMLFileLoader.h:82
Peak picking (conversion from raw to peak data)
Definition: DataProcessing.h:67
Int branching_tech
Definition: LPWrapper.h:85
Int backtrack_tech
Definition: LPWrapper.h:86
Definition: LPWrapper.h:105
Struct that holds the parameters of the LP solver.
Definition: LPWrapper.h:73
void setParameters(const Param ¶m)
Sets the parameters.
const Param & getDefaults() const
Non-mutable access to the default parameters.
bool enable_presolve
Definition: LPWrapper.h:97
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
Sense
Definition: LPWrapper.h:117
void transform(const String &filename_in, Interfaces::IMSDataConsumer *consumer, bool skip_full_count=false, bool skip_first_pass=false)
Transforms a map while loading using the supplied MSDataConsumer.
VariableType
Definition: LPWrapper.h:110
The representation of a chromatogram.
Definition: MSChromatogram.h:54
Definition: LPWrapper.h:113
SOLVER
Definition: LPWrapper.h:130
Management and storage of parameters / INI files.
Definition: Param.h:73
bool enable_mir_cuts
Definition: LPWrapper.h:90
SOLVER solver_
Definition: LPWrapper.h:322
Int preprocessing_tech
Definition: LPWrapper.h:87
Definition: LPWrapper.h:126
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
Definition: LPWrapper.h:55
Int output_delay
Definition: LPWrapper.h:96
bool enable_binarization
only with presolve
Definition: LPWrapper.h:98
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!