#include <iostream>
Go to the source code of this file.
Compounds | |
| struct | IotrVectorDisplayFormat |
| A struct whose instances specify an ASCII format for displaying the elements of a vector. More... | |
Functions | |
| void | set_to_zero (double v[], int n, int stride) |
| Sets v = 0. | |
| void | writef_to_stream (const double v[], int n, int stride, std::ostream &out, const char *formatString) |
| Prints out v subject to a format. | |
| void | set_to_constant (double v[], int n, int stride, double c) |
| Sets v = c. | |
| void | add_constant (double v[], int n, int stride, double c) |
| Sets v += c. | |
| double | stepbound (const double v[], int n, int incv, const double s[], int incs, double max) |
| Return max alpha such that v+alpha*s >= 0. | |
| double | stepbound (const double v[], int n, int incv, const double s[], int incs, const double b[], int nb, int incb, const int ib[], int nib, const double u[], int nu, int incu, const int iu[], int niu, double max) |
| Return max alpha such that b <= v+alpha*s <= u. | |
| void | make_sufficiently_positive (double x[], int n, int incx, double atol) |
| make all elements of x greater than atol, leaving those already greater untouched. | |
| void | make_interior (double x[], int n, int incx, const double xlow[], int nxlow, int incxlow, const int ixlow[], int nixlow, const double xupp[], int nxupp, int incupp, const int ixupp[], int nixupp, double rtol, double atol) |
| Make all elements of x interior to the bounds, leaving those already "sufficiently" interior untouched. | |
| double | max_violation (double v[], int length, int stride, double viol) |
| Computes the max violation of [ v; -viol ] >= 0. | |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Make all elements of x interior to the bounds, leaving those already "sufficiently" interior untouched. An element of x with only a lower bound is sufficiently interior if x[i] > b + atol. Otherwise it is set to b + atol. Treatment of elements with only upper bounds is similar. If an element has both upper and lower bounds, it is considered to be sufficiently interior if b + tol <= x[i] <= u - tol where tol = min[ atol, rtol * (u - b) ] If it is not sufficiently interior, we make the smallest change that will make the element sufficiently interior. |
1.2.18