00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __SENSCUTILS_HPP__
00009 #define __SENSCUTILS_HPP__
00010
00011 #include "IpUtils.hpp"
00012 #include <string>
00013 #include "IpAlgTypes.hpp"
00014 #include "IpReturnCodes.hpp"
00015
00016 namespace Ipopt
00017 {
00018
00022 enum SensAlgorithmExitStatus{
00023 SOLVE_SUCCESS,
00024 FATAL_ERROR
00025 };
00026
00027 Index AsIndexMax(Index length, const Index* x, Index Incr);
00028
00029 Index AsIndexSum(Index length, const Index* x, Index Incr);
00030
00031 void append_Index(std::string& str, Index idx);
00032
00033 SolverReturn AppReturn2SolverReturn(ApplicationReturnStatus ipopt_retval);
00034 }
00035
00036 #endif