Antares Simulator
Power System Simulator
Antares::Optimization::LinearExpression Class Referencefinal

Public Types

using const_iterator = std::vector< std::pair< int, double > >::const_iterator
 

Public Member Functions

 LinearExpression (double constant)
 
 LinearExpression (const std::vector< std::pair< int, double >> &coefs, double constant)
 
 LinearExpression (const LinearExpression &other)=default
 
void mergeDuplicateCoefficients ()
 
LinearExpressionoperator*= (double factor)
 
LinearExpressionoperator+= (const LinearExpression &other)
 
LinearExpressionoperator-= (const LinearExpression &other)
 
LinearExpression operator- () const
 
LinearExpression operator/ (const LinearExpression &other) const
 
LinearExpressionoperator*= (const LinearExpression &other)
 
LinearExpressionoperator^= (const LinearExpression &other)
 
void addVariable (int index, double value)
 
double constant () const
 
const_iterator begin () const
 
const_iterator end () const
 
const std::pair< int, double > & operator[] (std::size_t) const
 
std::size_t size () const
 
bool hasCoefs () const
 

The documentation for this class was generated from the following files: