source: colin/trunk/colin/OptApplication_Gradient.h @ 5786

Revision 5786, 1.9 KB checked in by wehart, 5 years ago (diff)

Update of source to include Acro copyright statement

Line 
1/*  _________________________________________________________________________
2 *
3 *  Acro: A Common Repository for Optimizers
4 *  Copyright (c) 2008 Sandia Corporation.
5 *  This software is distributed under the BSD License.
6 *  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7 *  the U.S. Government retains certain rights in this software.
8 *  For more information, see the README.txt file in the top Acro directory.
9 *  _________________________________________________________________________
10 */
11
12/**
13 * \file OptApplication_Gradient.h
14 *
15 * Defines the colin::OptApplication_Gradient class.
16 */
17
18#ifndef colin_OptApplication_Gradient_h
19#define colin_OptApplication_Gradient_h
20
21#include <acro_config.h>
22#include <colin/OptApplication_Base.h>
23
24namespace colin
25{
26
27//============================================================================
28//============================================================================
29// Class OptApplication_Gradient
30//============================================================================
31//============================================================================
32
33
34/**
35 *  Defines the elements of an OptApplication that pertain to problems
36 *  where gradient information is available.
37 */
38class OptApplication_Gradient : virtual public OptApplication_Base
39{
40public:
41   /// Constructor
42   OptApplication_Gradient();
43
44   /// Virtual destructor
45   virtual ~OptApplication_Gradient();
46
47   /// Register gradient evaluation computations
48   DECLARE_REQUEST(G);
49
50protected: // methods
51
52
53private: // data
54
55   ///
56   class OptApplication_Gradient_DATA;
57
58   ///
59   OptApplication_Gradient_DATA *data;
60};
61
62
63
64template <bool active>
65class OptApplication_Include_Gradient
66   : public OptApplication_Gradient
67{};
68
69template<>
70class OptApplication_Include_Gradient<false>
71{};
72
73} // namespace colin
74
75#endif // defined colin_OptApplication_Gradient_h
Note: See TracBrowser for help on using the repository browser.