28 SensitivityPbType pb_type = SensitivityPbType::CAPEX;
29 std::string str_pb_type;
30 std::string candidate_name;
33 double system_cost = 0;
35 int solver_status = 0;
38 SinglePbData(
const SensitivityPbType &pb_type, std::string str_pb_type,
39 std::string candidate_name, std::string opt_dir,
40 double objective,
double system_cost, Point candidates,
43 str_pb_type(std::move(str_pb_type)),
44 candidate_name(std::move(candidate_name)),
45 opt_dir(std::move(opt_dir)),
47 system_cost(system_cost),
48 candidates(std::move(candidates)),
49 solver_status(status) {}
51 SinglePbData(
const SensitivityPbType &pb_type, std::string str_pb_type,
52 std::string candidate_name, std::string opt_dir)
54 str_pb_type(std::move(str_pb_type)),
55 candidate_name(std::move(candidate_name)),
56 opt_dir(std::move(opt_dir)) {}
58 std::string get_pb_description()
const {
59 std::string pb_description = opt_dir +
" " + str_pb_type;
60 if (pb_type == SensitivityPbType::PROJECTION) {
61 pb_description +=
" " + candidate_name;
63 return pb_description;