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

# APPSPACK_Directions.hpp

Go to the documentation of this file.

    00001 // $Id: APPSPACK_Directions.hpp,v 1.11 2004/11/23 22:26:01 tgkolda Exp $
    00002 // $Source: /space/CVS-Acro/acro/packages/appspack/appspack/src/APPSPACK_Directions.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
    00032
    00038 #ifndef APPSPACK_DIRECTIONS_HPP
    00039 #define APPSPACK_DIRECTIONS_HPP
    00040
    00041 #include "APPSPACK_Point.hpp"
    00042 #include "APPSPACK_Constraints_Interface.hpp"
    00043 #include "APPSPACK_Parameter_List.hpp"
    00044
    00045 namespace APPSPACK
    00046 {
    00047
    00049
    00076 class Directions
    00077 {
    00078
    00079 public:
    00080
    00082
    00086   Directions(Parameter::List& params, const Constraints::Interface& constraints_in);
    00087
    00089   ~Directions();
    00090
    00092
    00094
    00099   const vector<int>& getDirectionIndices() const;
    00100
    00102   const Vector& getDirection(int i) const;
    00103
    00105   double getStep(int i) const;
    00106
    00108
    00112   bool isStepConverged() const;
    00113
    00115
    00116
    00118
    00120
    00128   void computeNewDirections(const Point& newPoint);
    00129
    00131   void setTrueStepAndTag(int i, double trueStep_in, int tag_in);
    00132
    00134
    00141   void reduceStep(int i);
    00142
    00144
    00146
    00148   void print(const string label) const;
    00149
    00151
    00152 private:
    00153
    00155   const Constraints::Interface& constraints;
    00156
    00158   const int nDimensions;
    00159
    00161   const Vector zero;
    00162
    00164   const double stepTolerance;
    00165
    00167   const double minStep;
    00168
    00170   const double theta;
    00171
    00173   int nDirections;
    00174
    00176   vector< Vector > direction;
    00177
    00179   Vector step;
    00180
    00182
    00185   Vector trueStep;
    00186
    00188
    00191   vector<int> tag;
    00192
    00194   Vector tmpVector;
    00195
    00197   mutable vector<int> idxVector;
    00198
    00199 };
    00200
    00201 }
    00202
    00203 #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