Update INSTALL to use CMAKE. Also update AUTHORS and LICENSE
1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
3 * This file is a part of LEMON, a generic C++ optimization library.
5 * Copyright (C) 2003-2010
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
24 ///\brief Header of the LEMON-CBC mip solver interface.
27 #include <lemon/lp_base.h>
30 class OsiSolverInterface;
35 /// \brief Interface for the CBC MIP solver
37 /// This class implements an interface for the CBC MIP solver.
39 class CbcMip : public MipSolver {
43 OsiSolverInterface *_osi_solver;
51 CbcMip(const CbcMip&);
55 virtual CbcMip* newSolver() const;
57 virtual CbcMip* cloneSolver() const;
61 virtual const char* _solverName() const;
63 virtual int _addCol();
64 virtual int _addRow();
65 virtual int _addRow(Value l, ExprIterator b, ExprIterator e, Value u);
67 virtual void _eraseCol(int i);
68 virtual void _eraseRow(int i);
70 virtual void _eraseColId(int i);
71 virtual void _eraseRowId(int i);
73 virtual void _getColName(int col, std::string& name) const;
74 virtual void _setColName(int col, const std::string& name);
75 virtual int _colByName(const std::string& name) const;
77 virtual void _getRowName(int row, std::string& name) const;
78 virtual void _setRowName(int row, const std::string& name);
79 virtual int _rowByName(const std::string& name) const;
81 virtual void _setRowCoeffs(int i, ExprIterator b, ExprIterator e);
82 virtual void _getRowCoeffs(int i, InsertIterator b) const;
84 virtual void _setColCoeffs(int i, ExprIterator b, ExprIterator e);
85 virtual void _getColCoeffs(int i, InsertIterator b) const;
87 virtual void _setCoeff(int row, int col, Value value);
88 virtual Value _getCoeff(int row, int col) const;
90 virtual void _setColLowerBound(int i, Value value);
91 virtual Value _getColLowerBound(int i) const;
92 virtual void _setColUpperBound(int i, Value value);
93 virtual Value _getColUpperBound(int i) const;
95 virtual void _setRowLowerBound(int i, Value value);
96 virtual Value _getRowLowerBound(int i) const;
97 virtual void _setRowUpperBound(int i, Value value);
98 virtual Value _getRowUpperBound(int i) const;
100 virtual void _setObjCoeffs(ExprIterator b, ExprIterator e);
101 virtual void _getObjCoeffs(InsertIterator b) const;
103 virtual void _setObjCoeff(int i, Value obj_coef);
104 virtual Value _getObjCoeff(int i) const;
106 virtual void _setSense(Sense sense);
107 virtual Sense _getSense() const;
109 virtual ColTypes _getColType(int col) const;
110 virtual void _setColType(int col, ColTypes col_type);
112 virtual SolveExitStatus _solve();
113 virtual ProblemType _getType() const;
114 virtual Value _getSol(int i) const;
115 virtual Value _getSolValue() const;
117 virtual void _clear();
119 virtual void _messageLevel(MessageLevel level);
120 void _applyMessageLevel();