Class MILPSolver::Objective

Nested Relationships

This class is a nested type of Class MILPSolver.

Nested Types

Class Documentation

class Objective

Public Types

typedef map<int, Coefficient>::const_iterator const_iterator

Public Functions

inline Objective(const bool maxObj = false)
inline void setMaximise(const bool &m)
inline const bool &maximise() const
inline Coefficient &getTerm(const int &v)
inline const_iterator begin() const
inline const_iterator end() const
inline size_t size() const

Protected Attributes

map<int, Coefficient> terms
bool _maximise
struct Coefficient

Public Functions

inline Coefficient()

Public Members

double linearCoefficient
map<int, double> nonLinearCoefficients