FlopCpp trunk
Loading...
Searching...
No Matches
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
49namespace 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
Function object.
Range over which some other constuct is defined.
Definition: MP_domain.hpp:61
void Forall(const Functor *op) const
Special conditional operation on the domain.
static const MP_domain & getEmpty()
returns a reference to the "empty" set.
Symbolic representation of a linear expression.
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...
static MP_model & getDefaultModel()
Can be used to get the default model.
void maximize()
Binds the data and calls the solver to maximize the current objective expression.
void minimize()
Binds the data and calls the solver to minimize the current objective expression.
Representation of a set for indexing into some other construct.
Definition: MP_set.hpp:78
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
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 MP_domain &d, const Functor &f)
Global function for performing a Functor on each member of a MP_domain.
Definition: flopc.hpp:55
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
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
All flopc++ code is contained within the flopc namespace.
Definition: flopc.hpp:49