Skip to content
Snippets Groups Projects
Commit 86c1963e authored by ThibautDemare's avatar ThibautDemare
Browse files

Merge info of FCs with their respective LSP's info

parent 2a0c0b2a
No related branches found
No related tags found
No related merge requests found
...@@ -34,13 +34,9 @@ global { ...@@ -34,13 +34,9 @@ global {
reflex storeAgent when: saveAgents { reflex storeAgent when: saveAgents {
if(savedAgents > 0 and cycle mod savedAgents){ if(savedAgents > 0 and cycle mod savedAgents){
write "================ START SAVE - " + cycle; write "================ START SAVE - " + cycle;
save "costsPathStrategy; threshold; averageCosts; cumulateCosts; adoptedSelectingWarehouseStrategy; provider.port; nbCustomers; region; department" to: "/Agents/LogisticsServiceProvider.csv" type: "csv" rewrite:true; 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.csv" type: "csv" rewrite:true;
ask LogisticsServiceProvider{
save [costsPathStrategy, threshold, averageCosts, cumulateCosts, adoptedSelectingWarehouseStrategy, provider.port, length(customers), region, department] to: "/Agents/LogisticsServiceProvider.csv" type: "csv" rewrite:false;
}
save "surface; localAverageCosts; localWarehousingCosts; averageCostsOfNeighbors; localVolumeNormalizedAverageCosts; localAverageNbStockShortagesLastSteps; region; department" to: "/Agents/FinalConsignee.csv" type: "csv" rewrite:true;
ask FinalConsignee { ask FinalConsignee {
save [surface, localAverageCosts, localWarehousingCosts, averageCostsOfNeighbors, localVolumeNormalizedAverageCosts, localAverageNbStockShortagesLastSteps, region, department] to: "/Agents/FinalConsignee.csv" type: "csv" rewrite:false; save [surface, localAverageCosts, localWarehousingCosts, averageCostsOfNeighbors, localVolumeNormalizedAverageCosts, localAverageNbStockShortagesLastSteps, region, department, logisticsServiceProvider.costsPathStrategy, logisticsServiceProvider.threshold, logisticsServiceProvider.averageCosts, logisticsServiceProvider.cumulateCosts, logisticsServiceProvider.adoptedSelectingWarehouseStrategy, logisticsServiceProvider.provider.port, length(logisticsServiceProvider.customers), logisticsServiceProvider.region, logisticsServiceProvider.department] to: "/Agents/FinalConsignee.csv" type: "csv" rewrite:false;
} }
write "================ END SAVE AGENTS - " + cycle; write "================ END SAVE AGENTS - " + cycle;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment