#include "IpUtils.hpp"
#include "IpJournalist.hpp"
Go to the source code of this file.
Namespaces | |
namespace | Ipopt |
Classes | |
class | IpoptException |
This is the base class for all exceptions. More... | |
Defines | |
#define | THROW_EXCEPTION(__except_type, __msg) throw __except_type( (__msg), (__FILE__), (__LINE__) ); |
#define | ASSERT_EXCEPTION(__condition, __except_type, __msg) |
#define | DECLARE_STD_EXCEPTION(__except_type) |
#define ASSERT_EXCEPTION | ( | __condition, | |||
__except_type, | |||||
__msg | ) |
Value:
if (! (__condition) ) { \ std::string newmsg = #__condition; \ newmsg += " evaluated false: "; \ newmsg += __msg; \ throw __except_type( (newmsg), (__FILE__), (__LINE__) ); \ }
Referenced by RegisteredOptions::AddBoundedIntegerOption(), RegisteredOptions::AddBoundedNumberOption(), RegisteredOptions::AddIntegerOption(), RegisteredOptions::AddLowerBoundedIntegerOption(), RegisteredOptions::AddLowerBoundedNumberOption(), RegisteredOptions::AddNumberOption(), RegisteredOptions::AddStringOption(), RegisteredOptions::AddStringOption1(), RegisteredOptions::AddStringOption2(), RegisteredOptions::AddStringOption3(), RegisteredOptions::AddStringOption4(), RegisteredOptions::AddStringOption5(), RegisteredOptions::AddStringOption6(), RegisteredOptions::AddStringOption7(), RegisteredOptions::AddUpperBoundedIntegerOption(), RegisteredOptions::AddUpperBoundedNumberOption(), OrigIpoptNLP::c(), TNLPAdapter::CheckDerivatives(), OrigIpoptNLP::d(), OrigIpoptNLP::f(), TNLPAdapter::GetSpaces(), OrigIpoptNLP::grad_f(), OrigIpoptNLP::h(), TSymLinearSolver::InitializeImpl(), StdAugSystemSolver::InitializeImpl(), PDFullSpaceSolver::InitializeImpl(), IpoptAlgorithm::InitializeImpl(), FilterLSAcceptor::InitializeImpl(), OrigIpoptNLP::InitializeStructures(), OrigIpoptNLP::jac_c(), OrigIpoptNLP::jac_d(), RegisteredOption::MapStringSettingToEnum(), TNLPAdapter::ProcessOptions(), OptionsList::ReadFromStream(), IpoptApplication::ReOptimizeNLP(), IpoptApplication::ReOptimizeTNLP(), PDFullSpaceSolver::Solve(), StdInterfaceTNLP::StdInterfaceTNLP(), TNLPAdapter::TNLPAdapter(), and LimMemQuasiNewtonUpdater::UpdateHessian().
#define DECLARE_STD_EXCEPTION | ( | __except_type | ) |
Value:
class __except_type : public IpoptException \ { \ public: \ __except_type(std::string msg, std::string fname, Index line) \ : IpoptException(msg,fname,line, #__except_type) {} \ __except_type(const __except_type& copy) \ : IpoptException(copy) {} \ private: \ __except_type(); \ void operator=(const __except_type&); \ }
#define THROW_EXCEPTION | ( | __except_type, | |||
__msg | ) | throw __except_type( (__msg), (__FILE__), (__LINE__) ); |
Referenced by AlgorithmBuilder::BuildBasicAlgorithm(), RestoFilterConvergenceCheck::CheckConvergence(), GradientScaling::DetermineScalingParametersImpl(), RestoIpoptNLP::f(), TripletHelper::FillRowCol(), TripletHelper::FillValues(), TripletHelper::FillValuesFromVector(), BacktrackingLineSearch::FindAcceptableTrialPoint(), OptionsList::GetBoolValue(), OptionsList::GetEnumValue(), OptionsList::GetIntegerValue(), TripletHelper::GetNumberEntries(), OptionsList::GetNumericValue(), TNLPAdapter::GetQuasiNewtonApproximationSpaces(), TNLPAdapter::GetScalingParameters(), NLP::GetScalingParameters(), TNLPAdapter::GetSpaces(), OptionsList::GetStringValue(), RestoIpoptNLP::grad_f(), OrigIpoptNLP::grad_f(), OrigIpoptNLP::h(), Ipopt::IpLapackDpotrf(), Ipopt::IpLapackDpotrs(), Ipopt::IpLapackDsyev(), IpoptApplication::IpoptApplication(), OrigIpoptNLP::jac_c(), StdAugSystemSolver::MultiSolve(), IpoptAlgorithm::Optimize(), MinC_1NrmRestorationPhase::PerformRestoration(), TripletHelper::PutValuesInVector(), OptionsList::ReadFromStream(), MonotoneMuUpdate::UpdateBarrierParameter(), and AdaptiveMuUpdate::UpdateBarrierParameter().