|
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 PBFGS_HELPERS 00030 #define PBFGS_HELPERS 00031 00032 #include "MoochoPack_Types.hpp" 00033 #include "MoochoPack_ActSetStats.hpp" 00034 00035 namespace MoochoPack { 00036 namespace PBFGSPack { 00037 00042 00056 bool act_set_calmed_down( 00057 const ActSetStats &act_set_stats 00058 ,const value_type act_set_frac_proj_start 00059 ,EJournalOutputLevel olevel 00060 ,std::ostream &out 00061 ); 00062 00075 void init_i_x_free_sRTsR_sRTyR( 00076 const SpVectorSlice &nu_indep 00077 ,const DVectorSlice &s 00078 ,const DVectorSlice &y 00079 ,size_type *n_pz_R 00080 ,size_type i_x_free[] 00081 ,value_type *sRTsR 00082 ,value_type *sRTyR 00083 ); 00084 00114 void sort_fixed_max_cond_viol( 00115 const SpVectorSlice &nu_indep 00116 ,const DVectorSlice &s 00117 ,const DVectorSlice &y 00118 ,const DVectorSlice &B_XX 00119 ,const value_type sRTBRRsR 00120 ,const value_type sRTyR 00121 ,value_type *sXTBXXsX 00122 ,value_type *sXTyX 00123 ,size_type l_x_fixed_sorted[] 00124 ); 00125 00187 void choose_fixed_free( 00188 const value_type project_error_tol 00189 ,const value_type super_basic_mult_drop_tol 00190 ,const SpVectorSlice &nu_indep 00191 ,const DVectorSlice &s 00192 ,const DVectorSlice &y 00193 ,const DVectorSlice &B_XX 00194 ,const size_type l_x_fixed_sorted[] 00195 ,EJournalOutputLevel olevel 00196 ,std::ostream &out 00197 ,value_type *sRTBRRsR 00198 ,value_type *sRTyR 00199 ,value_type *sXTBXXsX 00200 ,value_type *sXTyX 00201 ,size_type *n_pz_X 00202 ,size_type *n_pz_R 00203 ,size_type i_x_free[] 00204 ,size_type i_x_fixed[] 00205 ,ConstrainedOptPack::EBounds bnd_fixed[] 00206 ); 00207 00209 00210 } // end namespace PBFGSPack 00211 } // end namespace MoochoPack 00212 00213 #endif // PBFGS_HELPERS
1.7.4