28 static const char *relString[] = {
" == ",
" > ",
" < " };
55 std::vector<double>::size_type size =
itsWeight.size();
59 "Matching constraint is inconsistent, size_of(LHS), "
60 "size_of(RHS), size_of(WGT) should all be equal.");
64 value.resize(size, 0.0);
66 for(std::vector<double>::size_type i = 0; i < size; ++i) {
92 std::streamsize old_prec = os.
precision(9);
93 os.setf(std::ios::scientific, std::ios::floatfield);
95 for(std::vector<double>::size_type i = 0; i <
lValue.size(); ++i) {
96 os <<
" lhs = " << std::setw(16) <<
lValue[i]
97 <<
", rhs = " << std::setw(16) <<
rValue[i]
98 <<
", wgt = " << std::setw(16) <<
itsWeight[i]
99 <<
", val = " << std::setw(16) <<
value[i]
103 os.
setf(std::ios::fixed, std::ios::floatfield);
104 os.precision(old_prec);
std::vector< double > value
FmtFlags_t setf(FmtFlags_t setbits, FmtFlags_t field)
virtual void evaluate(Vector< double > &f, int &) const
Evaluate the matching function(s).
A representation of an Object attribute.
std::vector< double > itsWeight
std::vector< double > getRealArray(const Attribute &attr)
Get array value.
std::vector< double > lValue
std::vector< double > rValue
virtual int countConstraints() const
Get the number of constrained values.
virtual void print(std::ostream &) const
Print the function name and value(s).
Inform & endl(Inform &inf)