Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tmp
Smi-0.96.1
FlopCpp
src
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) {
65
forall
(
MP_domain::getEmpty
(), 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) {
84
MP_model::getDefaultModel
().
minimize
(obj);
85
}
86
96
inline
void
minimize_max
(
MP_set
& d,
const
MP_expression
&obj) {
97
MP_model::getDefaultModel
().
minimize_max
(d,obj);
98
}
99
107
inline
void
maximize
(
const
MP_expression
&obj) {
108
MP_model::getDefaultModel
().
maximize
(obj);
109
}
110
111
}
// End of namespace flopc
112
#endif
MP_data.hpp
MP_variable.hpp
MP_model.hpp
flopc::minimize_max
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
MP_boolean.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::getDefaultModel
static MP_model & getDefaultModel()
Can be used to get the default model.
MP_expression.hpp
flopc::Functor
Function object.
Definition:
MP_utilities.hpp:26
flopc::MP_set
Representation of a set for indexing into some other construct.
Definition:
MP_set.hpp:78
flopc::MP_domain::Forall
void Forall(const Functor *op) const
Special conditional operation on the domain.
flopc::maximize
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
flopc::MP_domain::getEmpty
static const MP_domain & getEmpty()
returns a reference to the "empty" set.
flopc::minimize
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
flopc::MP_expression
Symbolic representation of a linear expression.
Definition:
MP_expression.hpp:122
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_set.hpp
MP_constant.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::MP_model::minimize
void minimize()
Binds the data and calls the solver to minimize the current objective expression. ...
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_constraint.hpp
Generated by
1.8.5