Interior-point-optimisation
1.0-1
Interior-pointoptimisationlibrary
Main Page
Namespaces
Classes
Files
File List
File Members
GradientEstimate.cc
Go to the documentation of this file.
1
/*
2
* $Id: GradientEstimate.cc 37 2013-04-11 10:51:50Z jdl3 $
3
* Copyright (C) 2011, 2013 John D Lamb
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or (at
8
* your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
*/
19
20
#ifdef HAVE_CONFIG_H
21
# include<config.h>
22
#endif
23
24
#include"
GradientEstimate.hpp
"
25
26
using namespace
ipo_function
;
27
28
GradientEstimate::GradientEstimate
(
size_t
const
size )
29
: FunctionBase( size ){
30
functionValue
= 0;
31
}
32
33
double
34
GradientEstimate::value
()
const
{
35
return
functionValue
;
36
}
37
38
gsl::vector
39
GradientEstimate::gradient
()
const
{
40
return
functionGradient
;
41
}
ipo_function::GradientEstimate::functionValue
double functionValue
The function value.
Definition:
GradientEstimate.hpp:60
ipo_function::GradientEstimate::functionGradient
gsl::vector functionGradient
The gradient value.
Definition:
GradientEstimate.hpp:64
ipo_function::GradientEstimate::gradient
virtual gsl::vector gradient() const
Definition:
GradientEstimate.cc:39
ipo_function::GradientEstimate::value
virtual double value() const
Definition:
GradientEstimate.cc:34
ipo_function::GradientEstimate::GradientEstimate
GradientEstimate(size_t const size=0)
Constructor.
Definition:
GradientEstimate.cc:28
ipo_function
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
Definition:
DerivativesEstimates.hpp:29
GradientEstimate.hpp
ipo
ipo_function
GradientEstimate.cc
Generated on Sun Nov 30 2014 14:31:14 for Interior-point-optimisation by
1.8.8