Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MH-Builder
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orkad-public
MH-Builder
Commits
a0dc36f7
Commit
a0dc36f7
authored
5 months ago
by
Caron Olivier
Browse files
Options
Downloads
Patches
Plain Diff
add annotations for MH-Builder tutorial - adaptive part
parent
ec05d10e
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4747
failed
5 months ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/adaptive/ChangeIfSlowImprovement.h
+2
-2
2 additions, 2 deletions
src/core/adaptive/ChangeIfSlowImprovement.h
src/core/adaptive/TimeWindow.h
+2
-1
2 additions, 1 deletion
src/core/adaptive/TimeWindow.h
with
4 additions
and
3 deletions
src/core/adaptive/ChangeIfSlowImprovement.h
+
2
−
2
View file @
a0dc36f7
...
@@ -56,7 +56,7 @@ namespace core::adaptive {
...
@@ -56,7 +56,7 @@ namespace core::adaptive {
duration
(
_duration
),
improvement_percentage
(
_improvement_percentage
),
duration
(
_duration
),
improvement_percentage
(
_improvement_percentage
),
max_iterations
(
_max_iterations
),
eval
(
_eval
)
{}
max_iterations
(
_max_iterations
),
eval
(
_eval
)
{}
// tag::strat[]
/**
/**
* run the algorithm with the adaptive strategy
* run the algorithm with the adaptive strategy
* @param _in the initial solution
* @param _in the initial solution
...
@@ -81,7 +81,7 @@ namespace core::adaptive {
...
@@ -81,7 +81,7 @@ namespace core::adaptive {
counter
++
;
counter
++
;
}
}
}
}
// end::strat[]
protected
:
protected
:
int
duration
;
int
duration
;
double
improvement_percentage
;
double
improvement_percentage
;
...
...
This diff is collapsed.
Click to expand it.
src/core/adaptive/TimeWindow.h
+
2
−
1
View file @
a0dc36f7
...
@@ -55,6 +55,7 @@ namespace core::adaptive {
...
@@ -55,6 +55,7 @@ namespace core::adaptive {
}
}
}
}
// tag::strat[]
/**
/**
* run the algorithm with the adaptive strategy
* run the algorithm with the adaptive strategy
* @param _in the initial solution
* @param _in the initial solution
...
@@ -67,7 +68,7 @@ namespace core::adaptive {
...
@@ -67,7 +68,7 @@ namespace core::adaptive {
this
->
algorithm
(
_in
,
timeCriterion
);
this
->
algorithm
(
_in
,
timeCriterion
);
}
}
}
}
// end::strat[]
protected
:
protected
:
std
::
vector
<
long
long
int
>
&
durations
;
std
::
vector
<
long
long
int
>
&
durations
;
};
};
...
...
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