MC++
|
#include <mccormick.hpp>
Public Types | |
enum | TYPE { DIV =1, INV, LOG, SQRT, ASIN, TAN, MULTSUB =-3, ENVEL, SUB } |
Enumeration type for McCormick exception handling. More... | |
Public Member Functions | |
Exceptions (TYPE ierr) | |
Constructor for error ierr | |
int | ierr () |
Inline function returning the error flag. | |
std::string | what () |
Return error description. | |
enum mc::McCormick::Exceptions::TYPE |
Enumerator | |
---|---|
DIV |
Division by zero. |
INV |
Inverse with zero in range. |
LOG |
Log with negative values in range. |
SQRT |
Square-root with nonpositive values in range. |
ASIN |
Inverse sine or cosine with values outside of \([-1,1]\) range. |
TAN |
Tangent with values outside of \([-\frac{\pi}{2}+k\pi,\frac{\pi}{2}+k\pi]\) range. |
MULTSUB |
Failed to propagate subgradients for a product term with Tsoukalas & Mitsos's multivariable composition result. |
ENVEL |
Failed to compute the convex or concave envelope of a univariate term. |
SUB |
Inconsistent subgradient dimension between two mc::McCormick variables. |