Minotaur 0.4.1
Docs for developers
|
Declare some commonly used functions. More...
#include "LinearFunction.h"
Go to the source code of this file.
Namespaces | |
namespace | Minotaur |
Functions | |
bool | Minotaur::isInt (double v, double tol=1e-12) |
double | Minotaur::InnerProduct (const VariableGroup &g1, const VariableGroup &g2) |
double | Minotaur::InnerProduct (const std::vector< double > &x, const VariableGroup &g2) |
double | Minotaur::InnerProduct (const double *x, const double *a, int n) |
Inner product of two arrays, x and a, each of size n. | |
void | Minotaur::symMatDotV (UInt nz, const double *mat, const UInt *irow, const UInt *jcol, const double *v, double *prod) |
void | Minotaur::BoundsOnDiv (double l0, double u0, double l1, double u1, double &lb, double &ub) |
void | Minotaur::RevBoundsOnMult (double l0, double u0, double l1, double u1, double &lb, double &ub) |
double | Minotaur::round (double v) |
return the nearest integer to the given double value | |
void | Minotaur::BoundsOnProduct (bool zero_x_inf_zero, ConstVariablePtr x0, ConstVariablePtr x1, double &lb, double &ub) |
void | Minotaur::BoundsOnProduct (bool zero_x_inf_zero, double l0, double u0, double l1, double u1, double &lb, double &ub) |
void | Minotaur::BoundsOnRecip (double l0, double u0, double &lb, double &ub) |
void | Minotaur::BoundsOnSquare (ConstVariablePtr x1, double &lb, double &ub) |
Get lower and upper bounds on a square of variable. | |
void | Minotaur::BoundsOnSquare (const double x_lb, const double y_lb, double &lb, double &ub) |
bool | Minotaur::CompareLen (Constraint *c1, Constraint *c2) |
double | Minotaur::Gcd (double d1, double d2, const double &etol=1e-9) |
double | Minotaur::getDistance (const double *Pointa, const double *Pointb, UInt n) |
double | Minotaur::minArray (const double *A, UInt n) |
void | Minotaur::displayArray (const double *point, UInt n, std::ostream &out) |
To display the initial point. | |
void | Minotaur::sort (VarVector &vvec, double *x, bool ascend=true) |
Sort a vector of variables according to values of x. | |
void | Minotaur::sortRec (VarVector &vvec, double *x, int left, int right, int pivotind) |
void | Minotaur::toLowerCase (std::string &str) |
Convert a string to lower case. | |
std::string | Minotaur::toClockTime (double t) |
Convert a double representing seconds into wall clock time HH:MM:SS:mm. | |
Declare some commonly used functions.