Ipopt
trunk
|
00001 // Copyright (C) 2005, 2010 International Business Machines and others. 00002 // All Rights Reserved. 00003 // This code is published under the Eclipse Public License. 00004 // 00005 // $Id$ 00006 // 00007 // Authors: Carl Laird, Andreas Waechter IBM 2005-07-19 00008 00009 #ifndef __IPALGTYPES_HPP__ 00010 #define __IPALGTYPES_HPP__ 00011 00012 #include "IpTypes.hpp" 00013 #include "IpException.hpp" 00014 00015 namespace Ipopt 00016 { 00017 00022 enum SolverReturn { 00023 SUCCESS, 00024 MAXITER_EXCEEDED, 00025 CPUTIME_EXCEEDED, 00026 STOP_AT_TINY_STEP, 00027 STOP_AT_ACCEPTABLE_POINT, 00028 LOCAL_INFEASIBILITY, 00029 USER_REQUESTED_STOP, 00030 FEASIBLE_POINT_FOUND, 00031 DIVERGING_ITERATES, 00032 RESTORATION_FAILURE, 00033 ERROR_IN_STEP_COMPUTATION, 00034 INVALID_NUMBER_DETECTED, 00035 TOO_FEW_DEGREES_OF_FREEDOM, 00036 INVALID_OPTION, 00037 OUT_OF_MEMORY, 00038 INTERNAL_ERROR, 00039 UNASSIGNED 00040 }; 00042 00045 DECLARE_STD_EXCEPTION(LOCALLY_INFEASIBLE); 00046 DECLARE_STD_EXCEPTION(TOO_FEW_DOF); 00047 DECLARE_STD_EXCEPTION(TINY_STEP_DETECTED); 00048 DECLARE_STD_EXCEPTION(ACCEPTABLE_POINT_REACHED); 00049 DECLARE_STD_EXCEPTION(FEASIBILITY_PROBLEM_SOLVED); 00050 DECLARE_STD_EXCEPTION(INVALID_WARMSTART); 00051 DECLARE_STD_EXCEPTION(INTERNAL_ABORT); 00052 DECLARE_STD_EXCEPTION(NO_FREE_VARIABLES_BUT_FEASIBLE); 00053 DECLARE_STD_EXCEPTION(NO_FREE_VARIABLES_AND_INFEASIBLE); 00059 DECLARE_STD_EXCEPTION(FAILED_INITIALIZATION); 00061 00062 00063 } 00064 00065 #endif