Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-metric or dynamic weight calculation support #372

Open
wangyoucao577 opened this issue Sep 7, 2020 · 2 comments
Open

Multi-metric or dynamic weight calculation support #372

wangyoucao577 opened this issue Sep 7, 2020 · 2 comments
Labels
Ideas Ideas for long-term discussion Research Read paper/issue/code for better understanding

Comments

@wangyoucao577
Copy link

Some important references/discussion

@wangyoucao577 wangyoucao577 added Ideas Ideas for long-term discussion Research Read paper/issue/code for better understanding labels Sep 7, 2020
@wangyoucao577
Copy link
Author

wangyoucao577 commented Sep 7, 2020

std::vector<std::pair<bool, boost::filesystem::path>> files = {
{OPTIONAL, config.GetPath(".osrm.mldgr")},
{OPTIONAL, config.GetPath(".osrm.cell_metrics")},
{OPTIONAL, config.GetPath(".osrm.hsgr")},
{REQUIRED, config.GetPath(".osrm.datasource_names")},
{REQUIRED, config.GetPath(".osrm.geometry")},
{REQUIRED, config.GetPath(".osrm.turn_weight_penalties")},
{REQUIRED, config.GetPath(".osrm.turn_duration_penalties")}};

lists all the metric related files.
void Storage::PopulateUpdatableData(const SharedDataIndex &index)
shows operation on these updatable files.

@CodeBear801
Copy link

Another place need to pay attention to is here:

template <> class ContiguousInternalMemoryAlgorithmDataFacade<MLD> : public AlgorithmDataFacade<MLD>
{

    void InitializeInternalPointers(const storage::SharedDataIndex &index,
                                    const std::string &metric_name,
                                    const std::size_t exclude_index)
    {
        mld_partition = make_partition_view(index, "/mld/multilevelpartition");
        mld_cell_metric =
            make_filtered_cell_metric_view(index, "/mld/metrics/" + metric_name, exclude_index);
        mld_cell_storage = make_cell_storage_view(index, "/mld/cellstorage");
        query_graph = make_multi_level_graph_view(index, "/mld/multilevelgraph");
    }


    void InitializeInternalPointers(const storage::SharedDataIndex &index,
                                    const std::string &metric_name,
                                    const std::size_t exclude_index)
    {
        // TODO: For multi-metric support we need to have separate exclude classes per metric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ideas Ideas for long-term discussion Research Read paper/issue/code for better understanding
Projects
None yet
Development

No branches or pull requests

2 participants