-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadjust_stock.cpp
41 lines (35 loc) · 925 Bytes
/
adjust_stock.cpp
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
// #include "jni.h"
// #include <nlopt.hpp>
// #include <vector>
// #include <stdio.h>
// #include <limits>
// #include <exception>
// #include <iostream>
// #include <map>
// #include "Condition.h"
// #include "cost_compute.h"
// #include "fee_compute.h"
// #include "sum_compute.h"
// #include "risk_compute.h"
// #include "revenue_compute.h"
// #include <math.h>
// int np=8;
// double fee_ratio_uplimit=0.005;
// double approach_base=1.2;
// double epsilon=std::numeric_limits<double>::epsilon();
// class optimization_result{
// public:
// nlopt::result result;
// double minf;
// std::vector<double> *weight;
// optimization_result(nlopt::result result,double minf,std::vector<double> *weight){
// this->result=result;
// this->minf=minf;
// this->weight=weight;
// }
// ~optimization_result(){
// delete weight;
// }
// };
// public void adjust_stock(){
// }