FLOPC++
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
void maximize(const MP_expression &obj)
This is one of the main entry points for executionThis calls the OsiSolverInterface to execute the so...
Definition: flopc.hpp:107
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
Symbolic representation of a linear expression.This is one of the main public interface classes...
void minimize(const MP_expression &obj)
This is one of the main entry points for executionThis calls the OsiSolverInterface to execute the so...
Definition: flopc.hpp:83
void Forall(const Functor *op) const
Special conditional operation on the domain.
Definition: MP_domain.cpp:85
void minimize_max(MP_set &d, const MP_expression &obj)
This is one of the main entry points for executionThis calls the OsiSolverInterface to execute the so...
Definition: flopc.hpp:96
Range over which some other constuct is defined.This is one of the main public interface classes...
Definition: MP_domain.hpp:61
static const MP_domain & getEmpty()
returns a reference to the &quot;empty&quot; set.
Definition: MP_domain.cpp:48
void minimize_max(MP_set &d, const MP_expression &obj)
Definition: MP_model.cpp:137
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
Function object. Often used.
Representation of a set for indexing into some other construct.This is one of the main public interfa...
Definition: MP_set.hpp:78
static MP_model & getDefaultModel()
Definition: MP_model.cpp:25