ConstrainedOptPack_DecompositionSystemOrthogonal.hpp

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 DECOMPOSITION_SYSTEM_ORTHOGONAL_H
00030 #define DECOMPOSITION_SYSTEM_ORTHOGONAL_H
00031 
00032 #include "ConstrainedOptPack_DecompositionSystemVarReductImp.hpp"
00033 #include "Teuchos_StandardCompositionMacros.hpp"
00034 
00035 namespace ConstrainedOptPack {
00036 
00061 class DecompositionSystemOrthogonal : public DecompositionSystemVarReductImp {
00062 public:
00063 
00066 
00068   DecompositionSystemOrthogonal(
00069     const VectorSpace::space_ptr_t           &space_x                    = Teuchos::null
00070     ,const VectorSpace::space_ptr_t          &space_c                    = Teuchos::null
00071     ,const basis_sys_ptr_t                   &basis_sys                  = Teuchos::null
00072     ,const basis_sys_tester_ptr_t            &basis_sys_tester           = Teuchos::null
00073     ,EExplicitImplicit                       D_imp                       = MAT_IMP_EXPLICIT
00074     ,EExplicitImplicit                       Uz_imp                      = MAT_IMP_EXPLICIT
00075     );
00076 
00078 
00081 
00083   const mat_fcty_ptr_t factory_Y() const;
00085   const mat_nonsing_fcty_ptr_t factory_R() const;
00087   const mat_fcty_ptr_t factory_Uy() const;
00088 
00090 
00091 protected:
00092 
00095 
00097   void update_D_imp_used(EExplicitImplicit *D_imp_used) const;
00099   mat_nonsing_fcty_ptr_t::element_type::obj_ptr_t uninitialize_matrices(
00100     std::ostream                                       *out
00101     ,EOutputLevel                                      olevel
00102     ,MatrixOp                                          *Y
00103     ,MatrixOpNonsing                                   *R
00104     ,MatrixOp                                          *Uy
00105     ) const;
00107   void initialize_matrices(
00108     std::ostream                                           *out
00109     ,EOutputLevel                                          olevel
00110     ,const mat_nonsing_fcty_ptr_t::element_type::obj_ptr_t &C
00111     ,const mat_fcty_ptr_t::element_type::obj_ptr_t         &D
00112     ,MatrixOp                                              *Y
00113     ,MatrixOpNonsing                                       *R
00114     ,MatrixOp                                              *Uy
00115     ,EMatRelations                                         mat_rel
00116     ) const;
00118   void print_update_matrices(
00119     std::ostream& out, const std::string& leading_str ) const;
00120 
00122 
00123 private:
00124   
00125   // ////////////////////////
00126   // Private types
00127 
00128   typedef Teuchos::RefCountPtr<MatrixSymOpNonsing>  S_ptr_t;
00129 
00130   // ////////////////////////
00131   // Private data members
00132 
00133   mutable S_ptr_t        S_ptr_;
00134   // We just hold on to this between calls of uninitialize_matrices() and initialize_matrices()
00135 
00136   // ////////////////////////
00137   // Private member functions
00138 
00139   // Not defined and not to be called
00140   DecompositionSystemOrthogonal(const DecompositionSystemOrthogonal&);
00141   DecompositionSystemOrthogonal& operator=(const DecompositionSystemOrthogonal&);
00142 
00143 };  // end class DecompositionSystemOrthogonal
00144 
00145 } // end namespace ConstrainedOptPack
00146 
00147 #endif  // DECOMPOSITION_SYSTEM_ORTHOGONAL_H

Generated on Thu Sep 18 12:34:15 2008 for ConstrainedOptPack: C++ Tools for Constrained (and Unconstrained) Optimization by doxygen 1.3.9.1