Main Page
Namespaces
Classes
Files
File List
File Members
tmp
buildd
coinor-ipopt-3.10.2
Ipopt
contrib
sIPOPT
src
SensApplication.hpp
Go to the documentation of this file.
1
// Copyright 2009, 2011 Hans Pirnay
2
// All Rights Reserved.
3
// This code is published under the Eclipse Public License.
4
//
5
// Date : 2009-05-06
6
7
#ifndef __SENSAPPLICATION_HPP__
8
#define __SENSAPPLICATION_HPP__
9
10
#include "
IpReferenced.hpp
"
11
#include "
SensUtils.hpp
"
12
#include "
SensUtils.hpp
"
13
#include "
IpRegOptions.hpp
"
14
15
#include "
IpIpoptApplication.hpp
"
16
#include "
IpPDSystemSolver.hpp
"
17
namespace
Ipopt
18
{
20
DECLARE_STD_EXCEPTION
(SENS_SUFFIX_ERROR);
21
22
class
SensApplication
:
public
ReferencedObject
23
{
24
public
:
25
// constructor
26
SensApplication
(
SmartPtr<Journalist>
jnlst,
27
SmartPtr<OptionsList>
options,
28
SmartPtr<RegisteredOptions>
reg_options);
29
30
~SensApplication
();
31
32
static
void
RegisterOptions
(
SmartPtr<RegisteredOptions>
roptions);
33
34
SensAlgorithmExitStatus
Run
();
35
36
void
Initialize
();
37
38
void
SetIpoptAlgorithmObjects
(
SmartPtr<IpoptApplication>
app_ipopt,
39
ApplicationReturnStatus
ipopt_retval);
40
41
SmartPtr<Journalist>
Jnlst
()
42
{
43
return
jnlst_
;
44
}
45
46
47
SmartPtr<OptionsList>
Options
()
48
{
49
return
options_
;
50
}
51
53
SmartPtr<const OptionsList>
Options
()
const
54
{
55
return
ConstPtr
(
options_
);
56
}
57
58
59
private
:
60
61
// standard constructor just so it can't be used
62
// SensApplication();
63
64
// Pointers that are immediately passed from Ipopt and initialized by the constructor
65
SmartPtr<Journalist>
jnlst_
;
66
SmartPtr<OptionsList>
options_
;
67
SmartPtr<IpoptData>
ip_data_
;
68
SmartPtr<IpoptCalculatedQuantities>
ip_cq_
;
69
SmartPtr<PDSystemSolver>
pd_solver_
;
70
SmartPtr<IpoptNLP>
ip_nlp_
;
71
SmartPtr<RegisteredOptions>
reg_options_
;
72
ApplicationReturnStatus
ipopt_retval_
;
73
75
bool
run_sens_
;
76
bool
compute_red_hessian_
;
77
Index
n_sens_steps_
;
78
};
79
}
80
81
#endif
Generated on Tue Jun 26 2012 17:01:43 by
1.8.1.1