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
4a12795d
Commit
4a12795d
authored
9 months ago
by
Romain BERNARD
Browse files
Options
Downloads
Patches
Plain Diff
refactor function name to be clearer
parent
9bc0f8c6
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Route manipulation API with automatic constraint propagation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp
+1
-1
1 addition, 1 deletion
src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp
src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h
+1
-1
1 addition, 1 deletion
src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h
with
2 additions
and
2 deletions
src/algorithm/DARP/Heuristics/BestInsertionHeuristic.cpp
+
1
−
1
View file @
4a12795d
...
...
@@ -32,7 +32,7 @@ bool BestInsertionHeuristic::tryVehicleBestInsertion(size_t requestId, size_t ve
return
bestInsertionFound
;
}
size_t
BestInsertionHeuristic
::
do
RouteB
estInsertion
(
size_t
requestId
,
SAEVRoute
route
)
{
size_t
BestInsertionHeuristic
::
do
BestRequ
estInsertion
ForRoute
(
size_t
requestId
,
SAEVRoute
route
)
{
size_t
vehicleId
=
0
;
bool
insertionSuccess
{
false
};
while
(
vehicleId
<=
route
.
getLastActiveVehicleId
()
+
1
&&
!
insertionSuccess
)
{
...
...
This diff is collapsed.
Click to expand it.
src/algorithm/DARP/Heuristics/BestInsertionHeuristic.h
+
1
−
1
View file @
4a12795d
...
...
@@ -16,7 +16,7 @@ class BestInsertionHeuristic {
* @param route the route structure in which the request will be inserted
* @return ID of the vehicle in which the request has been
*/
static
size_t
do
RouteB
estInsertion
(
size_t
requestId
,
SAEVRoute
route
);
static
size_t
do
BestRequ
estInsertion
ForRoute
(
size_t
requestId
,
SAEVRoute
route
);
/**
* Iteratively tests best insertions wrt scoring function (detour) in the given vehicle and route
* @param requestId ID of the request to insert in the vehicle
...
...
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