|
MoochoPack : Framework for Large-Scale Optimization Algorithms Version of the Day
|
00001 // @HEADER 00002 // *********************************************************************** 00003 // 00004 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization 00005 // Copyright (2003) Sandia Corporation 00006 // 00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00008 // license for use of this work by or on behalf of the U.S. Government. 00009 // 00010 // This library is free software; you can redistribute it and/or modify 00011 // it under the terms of the GNU Lesser General Public License as 00012 // published by the Free Software Foundation; either version 2.1 of the 00013 // License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00023 // USA 00024 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 00025 // 00026 // *********************************************************************** 00027 // @HEADER 00028 00029 #ifndef PRE_EVAL_NEW_POINT_BARRIER_STEP_H 00030 #define PRE_EVAL_NEW_POINT_BARRIER_STEP_H 00031 00032 00033 #include "IterationPack_AlgorithmStep.hpp" 00034 #include "Teuchos_StandardCompositionMacros.hpp" 00035 #include "Teuchos_StandardMemberCompositionMacros.hpp" 00036 00037 #include "MoochoPack_Types.hpp" 00038 #include "IterationPack_AlgorithmStep.hpp" 00039 00040 #include "OptionsFromStreamPack_SetOptionsFromStreamNode.hpp" 00041 #include "OptionsFromStreamPack_SetOptionsToTargetBase.hpp" 00042 00043 namespace MoochoPack { 00044 00051 class PreEvalNewPointBarrier_Step 00052 : public IterationPack::AlgorithmStep // doxygen needs full path 00053 { 00054 public: 00055 00069 STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, relative_bound_push ); 00070 00084 STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, absolute_bound_push ); 00085 00089 bool do_step(Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type 00090 , poss_type assoc_step_poss); 00091 00092 00093 void print_step( const IterationPack::Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type 00094 , poss_type assoc_step_poss, std::ostream& out, const std::string& leading_str ) const; 00096 00099 PreEvalNewPointBarrier_Step( 00100 const value_type relative_bound_push = 0.01, 00101 const value_type absolute_bound_push = 0.001 00102 ); 00104 00105 }; // end class PreEvalNewPointBarrier_Step 00106 00107 class PreEvalNewPointBarrier_StepSetOptions 00108 : public OptionsFromStreamPack::SetOptionsFromStreamNode, 00109 public OptionsFromStreamPack::SetOptionsToTargetBase< PreEvalNewPointBarrier_Step > 00110 { 00111 public: 00112 PreEvalNewPointBarrier_StepSetOptions( 00113 PreEvalNewPointBarrier_Step* target = 0, 00114 const char opt_grp_name[] = "PreEvalNewPointBarrier" ); 00115 00116 protected: 00117 00119 void setOption( int option_num, const std::string& option_value ); 00120 00121 }; // end class PreEvalNewPointBarrier_StepSetOptions 00122 00123 00124 } // end namespace MoochoPack 00125 00126 #endif // PRE_EVAL_NEW_POINT_BARRIER_STEP_H
1.7.4