Ipopt Documentation  
 
Loading...
Searching...
No Matches
IpUtils.hpp File Reference
#include "IpTypes.hpp"
#include "IpDebug.hpp"
#include <algorithm>
#include <limits>
#include <stdexcept>
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  Ipopt
 This file contains a base class for all exceptions and a set of macros to help with exceptions.
 

Functions

template<typename T >
T Ipopt::Max (T a, T b)
 
template<typename T >
T Ipopt::Max (T a, T b, T c)
 
template<typename T >
T Ipopt::Max (T a, T b, T c, T d)
 
template<typename T >
T Ipopt::Min (T a, T b)
 
template<typename T >
T Ipopt::Min (T a, T b, T c)
 
template<typename T >
T Ipopt::Min (T a, T b, T c, T d)
 
IPOPTLIB_EXPORT bool Ipopt::IsFiniteNumber (Number val)
 Function returning true iff the argument is a valid double number (not NaN or Inf).
 
IPOPTLIB_EXPORT Number Ipopt::IpRandom01 ()
 Function returning a random number between 0 and 1.
 
IPOPTLIB_EXPORT void Ipopt::IpResetRandom01 ()
 Function resetting the random number generator.
 
IPOPTLIB_EXPORT Number Ipopt::CpuTime ()
 method determining CPU time
 
IPOPTLIB_EXPORT Number Ipopt::SysTime ()
 method determining system time
 
IPOPTLIB_EXPORT Number Ipopt::WallclockTime ()
 method determining wallclock time since first call
 
IPOPTLIB_EXPORT bool Ipopt::Compare_le (Number lhs, Number rhs, Number BasVal)
 Method for comparing two numbers within machine precision.
 
IPOPTLIB_EXPORT int Ipopt::Snprintf (char *str, long size, const char *format,...)
 Method for printing a formatted output to a string with given size.
 
template<typename T >
void Ipopt::ComputeMemIncrease (T &len, double recommended, T min, const char *context)
 Method to calculate new length for a memory increase based on a recommendation and limits in integer type.