00001 // Copyright 2009 Hans Pirnay 00002 // All Rights Reserved. 00003 // This code is published under the Common Public License. 00004 // 00005 // Date : 2009-05-14 00006 00007 00008 #ifndef __ASNMPCUTILS_HPP__ 00009 #define __ASNMPCUTILS_HPP__ 00010 00011 #include "IpUtils.hpp" 00012 #include <string> 00013 00014 namespace Ipopt 00015 { 00016 00020 enum NmpControllerExitStatus{ 00021 SOLVE_SUCCESS, 00022 FATAL_ERROR 00023 }; 00024 00025 Index AsIndexMax(Index length, const Index* x, Index Incr); 00026 00027 Index AsIndexSum(Index length, const Index* x, Index Incr); 00028 00029 void append_Index(std::string& str, Index idx); 00030 00031 } 00032 00033 #endif