7 #ifndef __SENSCUTILS_HPP__ 8 #define __SENSCUTILS_HPP__ 50 #define DECLARE_STD_SIPOPT_EXCEPTION(__except_type) \ 51 class SIPOPTLIB_EXPORT __except_type : public Ipopt::IpoptException \ 54 __except_type(std::string msg, std::string fname, Ipopt::Index line) \ 55 : Ipopt::IpoptException(msg,fname,line, #__except_type) {} \ 56 __except_type(const __except_type& copy) \ 57 : Ipopt::IpoptException(copy) {} \ 60 void operator=(const __except_type&); \ int Index
Type for all indices.
SIPOPTLIB_EXPORT SolverReturn AppReturn2SolverReturn(ApplicationReturnStatus ipopt_retval)
SIPOPTLIB_EXPORT Index AsIndexMax(Index length, const Index *x, Index Incr)
#define SIPOPTLIB_EXPORT
Include file for the configuration of Ipopt.
This file contains a base class for all exceptions and a set of macros to help with exceptions...
SIPOPTLIB_EXPORT void append_Index(std::string &str, Index idx)
SolverReturn
enum for the return from the optimize algorithm
SIPOPTLIB_EXPORT Index AsIndexSum(Index length, const Index *x, Index Incr)
ApplicationReturnStatus
Return codes for the Optimize call for an application.