FLOPC++
Public Member Functions | List of all members
flopc::MP_expression Class Reference

Symbolic representation of a linear expression.This is one of the main public interface classes. It is the basis for all linear expressions, including constraints, objective function, and expressions involving indexes.
Although these can be created directly and independently, it is expected these will be created through the use of the operators which are later in this file. (operator+, operator-, etc.) More...

#include <MP_expression.hpp>

Inheritance diagram for flopc::MP_expression:
flopc::Handle< MP_expression_base * >

Public Member Functions

 MP_expression ()
 
 MP_expression (const Constant &c)
 Constructor which (silently) converts a Constant to a MP_expression. More...
 
 MP_expression (const VariableRef &v)
 Constructor which (silently) converts a VariableRef to a MP_expression. More...
 
 MP_expression (MP_expression_base *r)
 
- Public Member Functions inherited from flopc::Handle< MP_expression_base * >
const MP_expression_base *& operator-> () const
 
 Handle (const MP_expression_base *&r)
 
 Handle (const Handle &h)
 
const Handleoperator= (const Handle &h)
 
bool isDefined ()
 
 ~Handle ()
 

Additional Inherited Members

- Protected Member Functions inherited from flopc::Handle< MP_expression_base * >
void increment ()
 
void decrement ()
 

Detailed Description

Symbolic representation of a linear expression.

This is one of the main public interface classes. It is the basis for all linear expressions, including constraints, objective function, and expressions involving indexes.
Although these can be created directly and independently, it is expected these will be created through the use of the operators which are later in this file. (operator+, operator-, etc.)

Note
There are constructors which are (silently) used to convert \ other componenets into expressions.

Definition at line 110 of file MP_expression.hpp.

Constructor & Destructor Documentation

flopc::MP_expression::MP_expression ( )
inline

Definition at line 112 of file MP_expression.hpp.

MP_expression::MP_expression ( const Constant c)

Constructor which (silently) converts a Constant to a MP_expression.

Definition at line 267 of file MP_expression.cpp.

MP_expression::MP_expression ( const VariableRef v)

Constructor which (silently) converts a VariableRef to a MP_expression.

Definition at line 270 of file MP_expression.cpp.

flopc::MP_expression::MP_expression ( MP_expression_base r)
inline

Definition at line 117 of file MP_expression.hpp.


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