#include <cuts.h>
Inheritance diagram for SimpleCut:
Public Member Functions | |
SimpleCut () | |
SimpleCut (const Pointer< UserVector< double > > &coeff_, double constant_) | |
bool | feasible (const dvector &x, double tol) const |
void | scale (double max_coeff=100.) |
Scales the coefficients (and constant) of the generates cut such that the inf norm of the coefficients does not exceed max_coeff. | |
Public Attributes | |
Pointer< UserVector< double > > | coeff |
double | constant |
Friends | |
ostream & | operator<< (ostream &out, const SimpleCut &cut) |
Definition at line 56 of file cuts.h.
SimpleCut::SimpleCut | ( | const Pointer< UserVector< double > > & | coeff_, | |
double | constant_ | |||
) | [inline] |
bool SimpleCut::feasible | ( | const dvector & | x, | |
double | tol | |||
) | const [inline] |
void SimpleCut::scale | ( | double | max_coeff = 100. |
) |
Scales the coefficients (and constant) of the generates cut such that the inf norm of the coefficients does not exceed max_coeff.
ostream& operator<< | ( | ostream & | out, | |
const SimpleCut & | cut | |||
) | [friend] |
Pointer<UserVector<double> > SimpleCut::coeff |
double SimpleCut::constant |