All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::lp::linear_expression Class Reference

#include <expressions.hpp>

Public Member Functions

 linear_expression ()
 Constructor.
 
 linear_expression (col_id col, double coef=1.)
 Constructor.
 
linear_expressionoperator+= (const linear_expression &expr)
 Addition operator.
 
linear_expressionoperator-= (const linear_expression &expr)
 Subtraction operator.
 
linear_expressionoperator*= (double val)
 Multiplication by a constant operator.
 
linear_expressionoperator/= (double val)
 Division by a constant operator.
 
double get_coefficient (col_id col) const
 Returns the coefficient for a given column.
 
const Elements & get_elements () const
 Returns the iterator range of the elements in the expression.
 
int non_zeros () const
 Returns the size (number of nonzero coefficients) of the expression.
 

Detailed Description

Expression class.

Definition at line 45 of file expressions.hpp.


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