Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DALSim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thibaut DEMARE
DALSim
Commits
d9e796c4
Commit
d9e796c4
authored
6 years ago
by
ThibautDemare
Browse files
Options
Downloads
Patches
Plain Diff
New chart: distribution of number of FC according to LSP
parent
4594b168
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/Experiments.gaml
+13
-0
13 additions, 0 deletions
models/Experiments.gaml
models/Observer.gaml
+20
-0
20 additions, 0 deletions
models/Observer.gaml
with
33 additions
and
0 deletions
models/Experiments.gaml
+
13
−
0
View file @
d9e796c4
...
...
@@ -657,5 +657,18 @@ experiment 'Every output' type: gui {
data "Number of LP using Antwerp" value: nbAntwerp color: divergingCol4 ;
}
}/**/
display "Distribution of number of FC per LSP" type: java2D {
chart "Distribution of number of FC per LSP"
type: series
x_label: 'Nb of FC'
y_label: 'Nb of LSP'
x_tick_unit: 1
y_tick_unit: 1
x_serie_labels: distributionNbFCPerLSPX
{
data "Distribution of number of FC per LSP" value: distributionNbFCPerLSPY color: divergingCol2;
}
}/**/
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
models/Observer.gaml
+
20
−
0
View file @
d9e796c4
...
...
@@ -547,6 +547,26 @@ global {
}
}
list<int> distributionNbFCPerLSPY;
list<int> distributionNbFCPerLSPX;
reflex distributionNbFCPerLSP {
distributionNbFCPerLSPY <- [];
ask LogisticsServiceProvider {
int nbCustomers <- length(self.customers);
loop while: length(distributionNbFCPerLSPY) <= nbCustomers{
distributionNbFCPerLSPY <- distributionNbFCPerLSPY + 0;
}
distributionNbFCPerLSPY[nbCustomers] <- distributionNbFCPerLSPY[nbCustomers] + 1;
}
distributionNbFCPerLSPX <- [];
int i <- 0;
loop while: i < length(distributionNbFCPerLSP) {
distributionNbFCPerLSPX <- distributionNbFCPerLSPX + i;
i <- i + 1;
}
}
string CSVFolderPath <- "../results/CSV/";
reflex saveObservations when: saveObservations {
if(date_simu_starts = nil) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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