12 #include <OsiSolverInterface.hpp>
18 using namespace flopc;
27 V(v),I1(i1),I2(i2),I3(i3),I4(i4),I5(i5) {
56 vector<Constant > multiplicators,
69 RowMajor(s1.size(),s2.size(),s3.size(),s4.size(),s5.size()),
70 upperLimit(
MP_data(s1,s2,s3,s4,s5)),
71 lowerLimit(
MP_data(s1,s2,s3,s4,s5)),
72 S1(&s1),S2(&s2),S3(&s3),S4(&s4),S5(&s5),
103 cout<<
"No solution available!"<<endl;
static MP_set & getEmpty()
gets the distinct 'empty' MP_set.
MP_variable(const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
void generate(const MP_domain &domain, std::vector< Constant > multiplicators, GenerateFunctor &f, double m) const
void Forall(const Functor *op) const
Special conditional operation on the domain.
MP_data upperLimit
Upper bound on the variable value.
void initialize(double d)
similar to value() but copies the same value to all entries.
void display(const std::string &s="")
Representation of an expression involving an index.This is one of the main public interface classes...
int f(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
const int outOfBound
Distinct return value on conditions where an index goes out of bounds.
VariableRef(MP_variable *v, const MP_index_exp &i1, const MP_index_exp &i2, const MP_index_exp &i3, const MP_index_exp &i4, const MP_index_exp &i5)
double level(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0)
Returns the value of the variable given the specific index values.
void setTerminalExpression(const TerminalExpression *c)
Range over which some other constuct is defined.This is one of the main public interface classes...
Symantic representation of a variable.This is one of the main public interface classes. It should be directly declared by clients of the FlopC++. The parametersof construction are MP_set s which specify the indexes over which the variable is defined.
Input data set.This is one of the main public interface classes. It is normally directly constructed ...
Functor to facilitate generation of coefficients.
Internal representation of a "set".
void setMultiplicator(std::vector< Constant > &mults, double m)
static MP_model & getDefaultModel()
MP_data lowerLimit
Lower bound on the variable value.