Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# APPSPACK_Constraints_Bounds.hpp

Go to the documentation of this file.

    00001 // $Id: APPSPACK_Constraints_Bounds.hpp,v 1.11 2004/10/21 23:06:53 tgkolda Exp $
    00002 // $Source: /space/CVS-Acro/acro/packages/appspack/appspack/src/APPSPACK_Constraints_Bounds.hpp,v $
    00003
    00004 //@HEADER
    00005 // ************************************************************************
    00006 //
    00007 //          APPSPACK: Asynchronous Parallel Pattern Search
    00008 //                 Copyright (2003) Sandia Corporation
    00009 //
    00010 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
    00011 // license for use of this work by or on behalf of the U.S. Government.
    00012 //
    00013 // This library is free software; you can redistribute it and/or modify
    00014 // it under the terms of the GNU Lesser General Public License as
    00015 // published by the Free Software Foundation; either version 2.1 of the
    00016 // License, or (at your option) any later version.
    00017 //
    00018 // This library is distributed in the hope that it will be useful, but
    00019 // WITHOUT ANY WARRANTY; without even the implied warranty of
    00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00021 // Lesser General Public License for more details.
    00022 //
    00023 // You should have received a copy of the GNU Lesser General Public
    00024 // License along with this library; if not, write to the Free Software
    00025 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    00026 // USA.                                                                           .
    00027 //
    00028 // Questions? Contact Tammy Kolda (tgkolda@sandia.gov)
    00029 //
    00030 // ************************************************************************
    00031 //@HEADER
    00037 #ifndef APPSPACK_CONSTRAINTS_BOUNDS_HPP
    00038 #define APPSPACK_CONSTRAINTS_BOUNDS_HPP
    00039
    00040 #include "APPSPACK_Vector.hpp"
    00041 #include "APPSPACK_Constraints_Interface.hpp"
    00042 #include "APPSPACK_Parameter_List.hpp"
    00043
    00044 namespace APPSPACK
    00045 {
    00046
    00047 namespace Constraints
    00048 {
    00049
    00051 class Bounds : public Interface
    00052 {
    00053
    00054 public:
    00058   Bounds(Parameter::List& params);
    00059
    00061   virtual ~Bounds() {} ;
    00062
    00063   // derived
    00064   virtual const Vector& getScaling() const;
    00065
    00066   // derived
    00067   virtual const Vector& getLower() const;
    00068
    00069   // derived
    00070   virtual const Vector& getUpper() const;
    00071
    00072   // derived
    00073   virtual const vector<bool>& getIsLower() const;
    00074
    00075   // derived
    00076   virtual const vector<bool>& getIsUpper() const;
    00077
    00079   virtual void print() const;
    00080
    00084   static Vector setup(Parameter::List& params);
    00085
    00087
    00091   static vector<bool> convertToBool(const Vector& v);
    00092
    00100   static void checkVector(const string& name, const Vector& v, int n);
    00101   static void checkVector(const string& name, const vector<bool>& v, int n);
    00103
    00105   static void error(const string& fname, const string& msg);
    00106
    00107 private:
    00108
    00110   void errorCheck() const;
    00111
    00112
    00113 private:
    00114
    00116   const Vector scaling;
    00117
    00119   const Vector lower;
    00120
    00122   const Vector upper;
    00123
    00125   const vector<bool> isLower;
    00126
    00128   const  vector<bool> isUpper;
    00129
    00130 };
    00131
    00132 }
    00133 }
    00134
    00135 #endif

© Sandia Corporation | Site Contact | Privacy and Security

Generated on Wed Dec 14 18:41:04 2005 for APPSPACK 4.0.2 by 1.3.8 written by Dimitri van Heesch, © 1997-2002