-
Notifications
You must be signed in to change notification settings - Fork 0
/
srOne.hpp
50 lines (34 loc) · 803 Bytes
/
srOne.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef SRONE_HPP
#define SRONE_HPP
#include "dualSys.hpp"
#include "Eigen/Dense"
class srOne
{
dualSys *myDual_;
Eigen::VectorXd gradient_;
Eigen::VectorXd dualVar_;
Eigen::VectorXd newtonStep_;
int qnRingOffset_, qnMem_;
bool qnReadyFlag_;
Eigen::MatrixXd Nmat_;
Eigen::MatrixXd Mmat_;
Eigen::MatrixXd S_blk_;
Eigen::MatrixXd Y_blk_;
Eigen::MatrixXd S_blk_scale;
Eigen::MatrixXd L_k;
Eigen::MatrixXd D_k;
Eigen::VectorXd getSROneHessVecProd(const Eigen::VectorXd &);
double curSmoothDualEnergy_;
static constexpr double dampScale_ = 1./6;
static constexpr double tauScale_ = 2;
double tauMax_;
double tau_;
int nDualVar_;
double trustLambda_;
double trustLambdaReset_;
int exitType_;
public:
srOne(dualSys *myDual) : myDual_(myDual) {}
int solve();
};
#endif