|
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 NULL_SPACE_STEP_WITH_INEQU_STD_STEP_H 00030 #define NULL_SPACE_STEP_WITH_INEQU_STD_STEP_H 00031 00032 #include "MoochoPack_Types.hpp" 00033 #include "IterationPack_AlgorithmStep.hpp" 00034 #include "IterationPack_CastIQMember.hpp" 00035 #include "MoochoPack_d_bounds_iter_quant.hpp" 00036 #include "MoochoPack_qp_solver_stats.hpp" 00037 #include "MoochoPack_act_set_stats.hpp" 00038 #include "ConstrainedOptPack_QPSolverRelaxed.hpp" 00039 #include "ConstrainedOptPack_QPSolverRelaxedTester.hpp" 00040 #include "Teuchos_StandardCompositionMacros.hpp" 00041 #include "Teuchos_StandardMemberCompositionMacros.hpp" 00042 00043 namespace MoochoPack { 00044 00050 class TangentialStepWithInequStd_Step 00051 : public IterationPack::AlgorithmStep // doxygen needs full path 00052 { 00053 public: 00054 00056 STANDARD_COMPOSITION_MEMBERS( QPSolverRelaxed, qp_solver ); 00057 00059 STANDARD_COMPOSITION_MEMBERS( QPSolverRelaxedTester, qp_tester ); 00060 00064 STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, warm_start_frac ); 00065 00067 enum EQPTesting { QP_TEST_DEFAULT, QP_TEST, QP_NO_TEST }; 00068 00073 STANDARD_MEMBER_COMPOSITION_MEMBERS( EQPTesting, qp_testing ); 00074 00078 STANDARD_MEMBER_COMPOSITION_MEMBERS( bool, primal_feasible_point_error ); 00079 00083 STANDARD_MEMBER_COMPOSITION_MEMBERS( bool, dual_feasible_point_error ); 00084 00086 TangentialStepWithInequStd_Step( 00087 const qp_solver_ptr_t &qp_solver 00088 ,const qp_tester_ptr_t &qp_tester 00089 ,value_type warm_start_frac = 0.8 00090 ,EQPTesting qp_testing = QP_TEST_DEFAULT 00091 ,bool primal_feasible_point_error = true 00092 ,bool dual_feasible_point_error = true 00093 ); 00094 00098 bool do_step(Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type 00099 , poss_type assoc_step_poss); 00101 void print_step( const Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type 00102 , poss_type assoc_step_poss, std::ostream& out, const std::string& leading_str ) const; 00104 00105 private: 00106 IterationPack::CastIQMember<VectorMutable> dl_iq_; 00107 IterationPack::CastIQMember<VectorMutable> du_iq_; 00108 qp_solver_stats_iq_member qp_solver_stats_; 00109 act_set_stats_iq_member act_set_stats_; 00110 00111 // not defined and not to be called 00112 TangentialStepWithInequStd_Step(); 00113 00114 }; // end class TangentialStepWithInequStd_Step 00115 00116 } // end namespace MoochoPack 00117 00118 #endif // NULL_SPACE_STEP_WITH_INEQU_STD_STEP_H
1.7.4