Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAEV Greedy Fleet Sizing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romain BERNARD
SAEV Greedy Fleet Sizing
Commits
8b60bd14
Commit
8b60bd14
authored
9 months ago
by
Romain BERNARD
Browse files
Options
Downloads
Patches
Plain Diff
add practical usage comment to the add/remove weight functions
parent
97c00655
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Route manipulation API with automatic constraint propagation
Pipeline
#7402
passed with warnings
9 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/routes/vehicle/SAEVRoute.h
+2
-0
2 additions, 0 deletions
src/routes/vehicle/SAEVRoute.h
with
2 additions
and
0 deletions
src/routes/vehicle/SAEVRoute.h
+
2
−
0
View file @
8b60bd14
...
...
@@ -48,11 +48,13 @@ public:
/**
* Updates weight in-between request's Origin/Destination (both included) to account for the given request's weight
* ⚠️ Execute this function *after* adding the request to the route, as it assumes the request is part of the route
* @param requestId ID of the request that serves as basis for iteration and weight to add
*/
void
addRequestWeightToRoute
(
size_t
requestId
);
/**
* Resets current weight to 0 on the request Origin/Destination key points and decreases weight on the nodes in-between by the request's weight
* ⚠️ Execute this function *before* removing the request from the route, as it assumes the request is still part of the route
* @param requestId ID of the request that serves as basis for iteration and weight to remove
*/
void
removeRequestWeightFromRoute
(
size_t
requestId
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment