prob_data_objectives.h
Go to the documentation of this file.
38 * @details In order to store the coefficients of our multi-objective problem we use specialisation of SCIP's ObjProbData
140 std::unordered_map<std::string, std::size_t> name_to_no_; ///< maps objective identifier to objective number
141 std::unordered_map<SCIP_VAR*, polyscip::OutcomeType> var_to_coeffs_; ///< maps SCIP variable to objective coefficients
142 std::unordered_map<std::string, std::vector<SCIP_VAR*>> name_to_nonzero_coeffs_; ///< maps objective identifer to non-zero variables
virtual ~ProbDataObjectives()
Definition: prob_data_objectives.h:46
Definition: struct_scip.h:59
void addObjCoeff(SCIP_VAR *var, const char *obj_name, polyscip::ValueType val)
Definition: prob_data_objectives.cpp:64
Definition: struct_var.h:198
polyscip::ValueType getObjVal(SCIP_VAR *var, std::size_t obj_no, polyscip::ValueType sol_val)
Definition: prob_data_objectives.cpp:144
void addObjName(const char *name)
Definition: prob_data_objectives.cpp:47
General types used for PolySCIP.
std::vector< SCIP_VAR * > getNonZeroCoeffVars(std::size_t obj_no) const
Definition: prob_data_objectives.cpp:130
std::size_t getNumberNonzeroCoeffs(std::size_t obj_no) const
Definition: prob_data_objectives.cpp:95
C++ wrapper classes for SCIP.
Definition: type_retcode.h:33
virtual SCIP_RETCODE scip_delorig(SCIP *scip)
Definition: prob_data_objectives.h:136
void ignoreObjectives(std::size_t obj_1, std::size_t obj_2)
Definition: prob_data_objectives.cpp:167
polyscip::ValueType getObjCoeff(SCIP_VAR *var, std::size_t obj_no)
Definition: prob_data_objectives.cpp:83
Stores coefficients and basic methods for objectives of given multi-objective problem.
Definition: prob_data_objectives.h:40
polyscip::ValueType getWeightedObjVal(SCIP_VAR *var, const polyscip::WeightType &weight)
Definition: prob_data_objectives.cpp:109
common defines and data types used in all packages of SCIP
Definition: objbenders.h:33
void unignoreObjectives()
Definition: prob_data_objectives.cpp:183