MC++
mc::McCormick< T >::Exceptions Class Reference

Exceptions of mc::McCormick.

#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.
 

Member Enumeration Documentation

template<typename T>
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.


The documentation for this class was generated from the following file: