FlopCpp  trunk
flopc.hpp
Go to the documentation of this file.
1 // ******************** FlopCpp **********************************************
2 // File: flopc.hpp
3 // $Id$
4 // Author: Tim Helge Hultberg (thh@mat.ua.pt)
5 // Copyright (C) 2003 Tim Helge Hultberg
6 // All Rights Reserved.
7 // ****************************************************************************
8 
9 #ifndef _flopc_hpp_
10 #define _flopc_hpp_
11 
12 #include "MP_variable.hpp"
13 #include "MP_set.hpp"
14 #include "MP_index.hpp"
15 #include "MP_constant.hpp"
16 #include "MP_data.hpp"
17 #include "MP_constraint.hpp"
18 #include "MP_expression.hpp"
19 #include "MP_boolean.hpp"
20 #include "MP_model.hpp"
21 
49 namespace flopc {
50 
55  inline void forall(const MP_domain& d, const Functor& f) {
56  d.Forall(&f);
57  }
58 
64  inline void forall(const Functor& f) {
66  }
67 
72  inline void operator<<=(const MP_domain& s, const MP_domain& d) {
73  d.Forall( s->makeInsertFunctor());
74  }
75 
83  inline void minimize(const MP_expression &obj) {
85  }
86 
96  inline void minimize_max(MP_set& d, const MP_expression &obj) {
98  }
99 
107  inline void maximize(const MP_expression &obj) {
109  }
110 
111 } // End of namespace flopc
112 #endif
flopc::MP_model::minimize
void minimize()
Binds the data and calls the solver to minimize the current objective expression.
flopc::MP_model::getDefaultModel
static MP_model & getDefaultModel()
Can be used to get the default model.
flopc::Functor
Function object.
Definition: MP_utilities.hpp:26
flopc::MP_domain
Range over which some other constuct is defined.
Definition: MP_domain.hpp:61
flopc::MP_model::maximize
void maximize()
Binds the data and calls the solver to maximize the current objective expression.
MP_model.hpp
MP_index.hpp
flopc::forall
void forall(const MP_domain &d, const Functor &f)
Global function for performing a Functor on each member of a MP_domain.
Definition: flopc.hpp:55
flopc::MP_model::minimize_max
void minimize_max(MP_set &d, const MP_expression &obj)
Binds the data and calls the solver to minimize maximum value of the parameter obj objective expressi...
MP_data.hpp
MP_set.hpp
flopc::MP_domain::getEmpty
static const MP_domain & getEmpty()
returns a reference to the "empty" set.
MP_constraint.hpp
flopc::minimize
void minimize(const MP_expression &obj)
This is one of the main entry points for execution.
Definition: flopc.hpp:83
flopc::MP_domain::Forall
void Forall(const Functor *op) const
Special conditional operation on the domain.
MP_variable.hpp
flopc
All flopc++ code is contained within the flopc namespace.
Definition: flopc.hpp:49
flopc::maximize
void maximize(const MP_expression &obj)
This is one of the main entry points for execution.
Definition: flopc.hpp:107
flopc::MP_expression
Symbolic representation of a linear expression.
Definition: MP_expression.hpp:122
flopc::MP_set
Representation of a set for indexing into some other construct.
Definition: MP_set.hpp:78
MP_boolean.hpp
flopc::operator<<=
void operator<<=(const MP_domain &s, const MP_domain &d)
Global function which copies members of MP_domain d into another (possibly non-empty) MP_domain.
Definition: flopc.hpp:72
flopc::minimize_max
void minimize_max(MP_set &d, const MP_expression &obj)
This is one of the main entry points for execution.
Definition: flopc.hpp:96
MP_constant.hpp
MP_expression.hpp