REFCallback
-
class REFCallback
Generic callback for custom Resource Extensions. In the case the user has not defined all three, default additive REFs are used.
Public Functions
-
virtual std::vector<double> REF_fwd(const std::vector<double> &cumulative_resource, const int &tail, const int &head, const std::vector<double> &edge_resource_consumption, const std::vector<int> &partial_path, const double &accummulated_cost) const
Default implementation of a forward REF.
-
virtual std::vector<double> REF_bwd(const std::vector<double> &cumulative_resource, const int &tail, const int &head, const std::vector<double> &edge_resource_consumption, const std::vector<int> &partial_path, const double &accummulated_cost) const
Default implementation of a backward REF (note that critical resource information is not an argument)
-
virtual std::vector<double> REF_join(const std::vector<double> &fwd_resource, const std::vector<double> &bwd_resource, const int &tail, const int &head, const std::vector<double> &edge_resource_consumption) const
Default implementation of a joining REF (used to merge forward and backward paths)
-
virtual std::vector<double> REF_fwd(const std::vector<double> &cumulative_resource, const int &tail, const int &head, const std::vector<double> &edge_resource_consumption, const std::vector<int> &partial_path, const double &accummulated_cost) const