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
fe75f30e
Commit
fe75f30e
authored
5 years ago
by
ThibautDemare
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong values and if-conditions
parent
25f0107e
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/Experiments.gaml
+4
-4
4 additions, 4 deletions
models/Experiments.gaml
with
4 additions
and
4 deletions
models/Experiments.gaml
+
4
−
4
View file @
fe75f30e
...
...
@@ -24,7 +24,7 @@ global {
int savedAgents <- -1;// Use by some experiments, if saveSimulation = true. It indicates when we should save the state of the agents.
reflex storeSimulation when: saveSimulation {
if(savedSteps > 0 and cycle mod savedSteps){
if(savedSteps > 0 and cycle mod savedSteps
= 0
){
write "================ START SAVE SIMULATION - " + cycle;
write "Save of simulation : " + save_simulation("/Backup/saveSimu_"+cycle+".gsim");
write "================ END SAVE SIMULATION - " + cycle;
...
...
@@ -32,7 +32,7 @@ global {
}
reflex storeAgent when: saveAgents {
if(savedAgents > 0 and cycle mod savedAgents){
if(savedAgents > 0 and cycle mod savedAgents
= 0
){
write "================ START SAVE - " + cycle;
save "surface; localAverageCosts; localWarehousingCosts; averageCostsOfNeighbors; localVolumeNormalizedAverageCosts; localAverageNbStockShortagesLastSteps; region; department; lsp.costsPathStrategy; lsp.threshold; lsp.averageCosts; lsp.cumulateCosts; lsp.adoptedSelectingWarehouseStrategy; lsp.provider.port; lsp.nbCustomers; lsp.region; lsp.department" to: "/Agents/FinalConsignee_"+cycle+".csv" type: "csv" rewrite:true;
ask FinalConsignee {
...
...
@@ -56,9 +56,9 @@ experiment 'Docker' type: gui {
parameter "pathBD" var: pathBD <- "/bd/Used/";
parameter "CSVFolderPath" var: CSVFolderPath <- "/CSV/";
parameter "saveSimulation" var: saveSimulation <- false;
parameter "savedSteps" var: savedSteps <-
[]
;
parameter "savedSteps" var: savedSteps <-
-1
;
parameter "saveAgents" var: saveAgents <- false;
parameter "savedAgents" var: savedAgents <-
[]
;
parameter "savedAgents" var: savedAgents <-
-1
;
reflex reflexBackup {
ask world {
...
...
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