Main Page
Namespaces
Classes
Files
File List
File Members
var
build
temp
tmp.niCloInx4p
4.0-0-0
coinor-ipopt
coinor-ipopt-3.10.2
Ipopt
src
contrib
CGPenalty
IpCGPenaltyCq.hpp
Go to the documentation of this file.
1
// Copyright (C) 2007, 2008 International Business Machines and others.
2
// All Rights Reserved.
3
// This code is published under the Eclipse Public License.
4
//
5
// $Id: IpCGPenaltyCq.hpp 1861 2010-12-21 21:34:47Z andreasw $
6
//
7
// Authors: Andreas Waechter IBM 2007-06-04
8
// derived from IpIpoptCalculatedQuantities.hpp
9
10
#ifndef __IPCGPENALTYCQ_HPP__
11
#define __IPCGPENALTYCQ_HPP__
12
13
#include "
IpIpoptCalculatedQuantities.hpp
"
14
#include "
IpCGPenaltyData.hpp
"
15
16
namespace
Ipopt
17
{
18
22
class
CGPenaltyCq
:
public
IpoptAdditionalCq
23
{
24
public
:
25
29
CGPenaltyCq
(
IpoptNLP
* ip_nlp,
30
IpoptData
* ip_data,
31
IpoptCalculatedQuantities
* ip_cg);
32
34
virtual
~CGPenaltyCq
();
36
40
bool
Initialize
(
const
Journalist
& jnlst,
41
const
OptionsList
& options,
42
const
std::string& prefix);
43
46
48
Number
curr_jac_cd_norm
(
Index
nrm_type);
50
Number
curr_scaled_y_Amax
();
52
Number
curr_added_y_nrm2
();
53
55
Number
curr_penalty_function
();
57
Number
trial_penalty_function
();
60
Number
curr_direct_deriv_penalty_function
();
63
Number
curr_fast_direct_deriv_penalty_function
();
64
66
Number
dT_times_barH_times_d
();
67
68
72
Number
curr_cg_pert_fact
();
73
75
Number
compute_curr_cg_penalty
(
const
Number
);
76
78
Number
compute_curr_cg_penalty_scale
();
80
83
static
void
RegisterOptions
(
const
SmartPtr<RegisteredOptions>
& roptions);
85
86
private
:
96
CGPenaltyCq
();
97
99
CGPenaltyCq
(
const
CGPenaltyCq
&);
100
102
void
operator=
(
const
CGPenaltyCq
&);
104
109
IpoptNLP
*
ip_nlp_
;
110
IpoptData
*
ip_data_
;
111
IpoptCalculatedQuantities
*
ip_cq_
;
113
115
CGPenaltyData
&
CGPenData
()
116
{
117
CGPenaltyData
& cg_pen_data =
118
static_cast<
CGPenaltyData
&
>
(
ip_data_
->
AdditionalData
());
119
DBG_ASSERT
(dynamic_cast<CGPenaltyData*>(&
ip_data_
->
AdditionalData
()));
120
return
cg_pen_data;
121
}
122
125
CachedResults<Number>
curr_fast_direct_deriv_penalty_function_cache_
;
126
CachedResults<Number>
curr_jac_cd_norm_cache_
;
127
CachedResults<Number>
curr_scaled_y_Amax_cache_
;
128
CachedResults<Number>
curr_added_y_nrm2_cache_
;
130
CachedResults<Number>
curr_penalty_function_cache_
;
132
CachedResults<Number>
trial_penalty_function_cache_
;
135
CachedResults<Number>
curr_direct_deriv_penalty_function_cache_
;
137
CachedResults<Number>
curr_cg_pert_fact_cache_
;
139
142
Number
reference_infeasibility_
;
144
147
bool
initialize_called_
;
148
};
149
150
}
// namespace Ipopt
151
152
#endif
Generated on Mon Mar 17 2014 19:49:13 by
1.8.1.2