Professional Documents
Culture Documents
Download full ebook of Advances In Practical Applications Of Agents Multi Agent Systems And Complex Systems Simulation The Paams Collection 20Th International Conference Paams 2022 Frank Dignum online pdf all chapter docx
Download full ebook of Advances In Practical Applications Of Agents Multi Agent Systems And Complex Systems Simulation The Paams Collection 20Th International Conference Paams 2022 Frank Dignum online pdf all chapter docx
https://ebookmeta.com/product/multi-agent-based-simulation-
xx-20th-international-workshop-mabs-2019-montreal-qc-canada-
may-13-2019-revised-selected-papers-mario-paolucci/
https://ebookmeta.com/product/performance-and-controller-design-
for-the-synchronization-of-multi-agent-systems-1st-edition-
andrej-mosebach/
https://ebookmeta.com/product/advances-in-networked-based-
information-systems-the-23rd-international-conference-on-network-
based-information-systems-nbis-2020-leonard-barolli/
Advances in Practical
Applications of Agents,
Multi-Agent Systems,
LNAI 13616
123
Lecture Notes in Artificial Intelligence 13616
Series Editors
Randy Goebel
University of Alberta, Edmonton, Canada
Wolfgang Wahlster
DFKI, Berlin, Germany
Zhi-Hua Zhou
Nanjing University, Nanjing, China
Founding Editor
Jörg Siekmann
DFKI and Saarland University, Saarbrücken, Germany
More information about this subseries at https://link.springer.com/bookseries/1244
Frank Dignum · Philippe Mathieu ·
Juan Manuel Corchado ·
Fernando De La Prieta (Eds.)
Advances in Practical
Applications of Agents,
Multi-Agent Systems,
and Complex Systems Simulation
The PAAMS Collection
20th International Conference, PAAMS 2022
L’Aquila, Italy, July 13–15, 2022
Proceedings
Editors
Frank Dignum Philippe Mathieu
Umeå University University of Lille
Umeå, Sweden Lille, France
© The Editor(s) (if applicable) and The Author(s), under exclusive license
to Springer Nature Switzerland AG 2022
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication
does not imply, even in the absence of a specific statement, that such names are exempt from the relevant
protective laws and regulations and therefore free for general use.
The publisher, the authors, and the editors are safe to assume that the advice and information in this book are
believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors
give a warranty, expressed or implied, with respect to the material contained herein or for any errors or
omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in
published maps and institutional affiliations.
This Springer imprint is published by the registered company Springer Nature Switzerland AG
The registered company address is: Gewerbestrasse 11, 6330 Cham, Switzerland
Preface
Research on agents and multi-agent systems has matured during the last thirty years and
many effective applications of this technology are now deployed. An international forum
to present and discuss the latest scientific developments and their effective applications,
to assess the impact of the approach, and to facilitate technology transfer became a
necessity and was created almost two decades ago.
PAAMS, the International Conference on Practical Applications of Agents and
Multi-Agent Systems, is the international yearly conference to present, discuss, and
disseminate the latest developments and the most important outcomes related to real-
world applications. It provides a unique opportunity to bring multi-disciplinary experts,
academics, and practitioners together to exchange their experience in the development
and deployment of agents and multi-agent systems.
This volume presents the papers that were accepted for the 2022 edition of
PAAMS. These articles report on the application and validation of agent-based models,
methods, and technologies in a number of key application areas, including simulating
complex systems, agents for social good, advanced models for learning, agent-based
programming, distributed data analysis, automatic planning, decision-making, social
interactions, formal and theoretic models, self-adaptation, mobile edge computing,
swarms, and task allocation. Each paper submitted to PAAMS went through a stringent
peer-review process and was evaluated by at least three members of the Program
Committee (composed of 134 internationally renowned researchers from 29 countries).
From the 67 submissions received, 20 were selected for full presentation at the
conference; another 15 papers were accepted as short presentations. In addition, a
demonstration track featuring innovative and emergent applications of agent and multi-
agent systems and technologies in real-world domains was organized. In all, 10
demonstrations were shown, and this volume contains a description of each of them.
We would like to thank all the contributing authors, the members of the
Program Committee, the sponsors (IBM, Indra, Dipartimento di Ingegneria e Scienze
dell’Informazione e Matematica dell’Università degli Studi dell’Aquila, Armundia
Group, Whitehall Reply, T.C. Technologies and Communication S.R.L., LCL Industria
Grafica, AIR Institute, AEPIA, and APPIA), and the Organizing Committee for their
hard and highly valuable work. We thank the funding with the project “Intelligent
and sustainable mobility supported by multi-agent systems and edge computing”, Id.
RTI2018-095390-B-C32). Their work contributed to the success of the PAAMS 2022
event.
Thanks for your help – PAAMS 2022 would not exist without your contribution.
General Co-chairs
Frank Dignum Umeå University, Sweden
Philippe Mathieu University of Lille, France
Juan Manuel Corchado University of Salamanca and AIR Institute, Spain
Fernando De la Prieta University of Salamanca, Spain
Workshop Chair
Alfonso González Briones University of Salamanca, Spain
Advisory Board
Bo An Nanyang Technological University, Singapore
Paul Davidsson Malmö University, Sweden
Keith Decker University of Delaware, USA
Yves Demazeau CNRS, LIG, France
Tom Holvoet KU Leuven, Belgium
Toru Ishida Kyoto University, Japan
Takayuki Ito Nagoya Institute of Technology, Japan
Eric Matson Purdue University, USA
Jörg P. Müller Clausthal Technical University, Germany
Michal Pěchouček Technical University in Prague, Czech Republic
Franco Zambonelli University of Modena and Reggio Emilia, Italy
Organizing Committee
Juan M. Corchado Rodríguez University of Salamanca and AIR Institute, Spain
Fernando De la Prieta University of Salamanca, Spain
Sara Rodríguez González University of Salamanca, Spain
Javier Prieto Tejedor University of Salamanca and AIR Institute, Spain
Pablo Chamoso Santos University of Salamanca, Spain
Liliana Durón University of Salamanca, Spain
Belén Pérez Lancho University of Salamanca, Spain
Ana Belén Gil González University of Salamanca, Spain
Ana De Luis Reboredo University of Salamanca, Spain
Angélica González Arrieta University of Salamanca, Spain
viii Organization
Program Committee
Emmanuel Adam LAMIH, Université Polytechnique
Hauts-de-France , France
Analia Amandi CONICET, Argentina
Fred Amblard IRIT, Université Toulouse 1 Capitole, France
Bo An Nanyang Technological University, Singapore
Ronald Arkin Georgia Institute of Technology, USA
Piotr Artiemjew University of Warmia and Mazury in Olsztyn,
Poland
Matteo Baldoni Università di Torino, Italy
João Balsa Universidade de Lisboa, Portugal
Cristina Baroglio Università di Torino, Italy
Nick Bassiliades Aristotle University of Thessaloniki, Greece
Byambasuren Bat-Erdene Mongolian University of Science and Technology,
Mongolia
Michael Berger Docuware AG, Germany
Moulin Bernard Laval University, Canada
Vicent Botti Universitat Politècnica de València, Spain
Lars Braubach City University of Bremen, Germany
Sven Brueckner ConvergentAI, Inc., USA
Javier Carbo Universidad Carlos III de Madrid, Spain
Organization ix
Main Track
Control Your Virtual Agent in its Daily-activities for Long Periods . . . . . . . . . . . 203
Lysa Gramoli, Jérémy Lacoche, Anthony Foulonneau,
Valérie Gouranton, and Bruno Arnaldi
Demonstrations
1 Introduction
In the emerging Smart Grid [2], energy and information flow towards all possible
directions over distribution and transmission networks. As such, buildings but
also vehicles become active consumers and producers of energy, and need to
be integrated into the Grid. Not only is the Smart Grid an electricity network
with diverse consumers and producers, it is also a dynamic marketplace where
heterogeneous devices appear and need to connect [9]. To date, several Smart
c The Author(s), under exclusive license to Springer Nature Switzerland AG 2022
F. Dignum et al. (Eds.): PAAMS 2022, LNAI 13616, pp. 3–14, 2022.
https://doi.org/10.1007/978-3-031-18192-4_1
4 C. Akasiadis et al.
3 System Architecture
In this section we provide an overview of our architecture. We assume that
agents coexist in a microgrid infrastructure that can be interconnected with
6 C. Akasiadis et al.
Electricity Electricity
Producer Agents Energy Consumer Agents
Imports/Exports
Station Recommender
Mechanism Agent
Design Agent Electricity Imbalance Agent
Microgrid
Fig. 1. Overview of the proposed MAS architecture for the V2G/G2V problem.
other parts of the Smart Grid through distribution and transmission networks.
When a microgrid requires power that can not be generated locally, it can import
it, while, when it has a local energy surplus, it can export it to the Grid and create
additional profits for its producers, according to energy market regulations [9].
Figure 1 provides an overview of the agents and their interactions.
In particular, the agent types in our system are: the (a) Electric Vehicle
agents (EV), the (b) Charging Station agents (CS), the (c) Electricity Producer
agents (EP), and the (d) Electricity Consumer agents (EC). We also assume the
existence of a regulatory service (possibly a for-profit private service), that con-
sists of the following agents: (i) a Station Recommender (SR), (ii) an Electricity
Imbalance (EI), and (iii) a Mechanism Design (MD). In what follows, we refer
to this service by its three distinct agents separately. Note that each agent type
may consist of certain “private” sub-modules, whose specific functionality can
further differentiate agent behaviors.
EV agents aim to optimize a utility function set by the EV owner— e.g., always
have enough energy to realize the next trip, achieve so by the minimum cost, etc.
The EV agent monitors the driver’s activities, models and predicts her future
behavior and needs, and can contact a charging station to schedule battery charg-
ing, seek profit from participation in V2G activities, and engage in negotiations
with the charging stations. Building blocks can be preference elicitation modules,
responsible for monitoring the habits and behavior of the driver, and perhaps even
forecast future preferences; user interfaces accessible by humans either via mobile
devices or the vehicle’s dashboard, to operate respective procedures and monitor
their conduct, for example payments, negotiations, or browse and select recom-
mendations. Such agents can implement alternative strategies for automatically
selecting a charging schedule according to predefined needs of each driver, e.g. less
cost, quicker availability, charging network preferences, location-based selection
An Open MAS/IoT-Based Architecture for Large-Scale V2G/G2V 7
4 Agent Interactions
We followed a methodological approach to system analysis and design, based
on the Agent Systems Engineering Methodology (ASEME), which has been
employed in the past for modeling Ambient Intelligence applications [18] and
8 C. Akasiadis et al.
CP2
Charging Station Agent* Electric Vehicle Agent*
CP3
CP4
CP4 CP4 CP5
CP8 CP12 Station Recommender Agent CP1
CP8
CP11 CP11
CP6 CP1 Charging Recommendation Protocol
CP7
CP2 Charging Station Reservation Protocol
CP3 Negotiation Protocol
Mechanism Design Agent CP7 Electricity Imbalance Agent CP4 Charging Station Registration Protocol
CP9 CP9 CP5 Authenticate Recommendation Protocol
CP9 CP10 CP10 CP9 CP6 Electricity Prices Protocol
CP10 CP10 CP7 Electricity Imbalance Protocol
CP11 CP11 CP8 Charging Station Update Schedule Protocol
CP11 CP11 CP9 Producer Consumer Registration Protocol
CP10 Update Expected Production/Consumption Pr.
Electricity Consumer Agent* Electricity Producer Agent* CP11 Update Energy Profile Confidence Protocol
CP12 Update Station Availability Protocol
Fig. 2. The proposed architecture. (*) denotes agent types with multiple instances.
Arrows start from the agent that initiates the protocol and point to the receiver agents.
CP8 Charging Station Update Schedule: Follows after CP5. The CS creates
an updated energy schedule after an EV recommendation is authenticated,
and communicates it to the EI and the MD.
CP9 Producer Consumer Registration: Registers new producers and con-
sumers. The new stakeholder informs EI and MD about its type.
CP10 Update Expected Production/Consumption: Triggers at the begin-
ning of each day. All producers and consumers inform the EI and MD agents
about the next day’s expected production and consumption.
CP11 Update Energy Profile Confidence: Triggers at the start of each
day. All producers and consumers inform the EI and MD agents about their
confidence regarding their forecasts (CP10).
CP12 Update Station Availability: Follows right after CP2. The CS updates
its charging slot availability after each new reservation, and informs the SR.
5 Experimental Evaluation
In this section we show four use cases that illustrate the applicability of our
proposed architecture. The use cases provide comparative evaluations of the
implemented strategies discussed in the previous section. All agent implementa-
tions are in Python, while the datasets that we used are based on a collection of
real data from a number of publicly available online resources;4 and the duration
of each simulation is 10 days. The simulations were performed on a PC with an
AMD Ryzen 5 1500X @ 3.5 GHz processor and 8 GB of RAM.
4
Specifically, consumption and production data originate from the ENTSOE platform,
and EV data from the MyElectricAvenue project.
An Open MAS/IoT-Based Architecture for Large-Scale V2G/G2V 11
(a) Average Cumulative Cost per EV for (b) Cost comparison of varying time peri-
different charging scheduling methods. ods that EVs are connected to chargers.
prices and energy shortage of the grid. An even better picture is obtained when
V2G comes into play, with even lower imbalance (higher imbalance reduction,
reaching 37.3%); less energy wasted (waste reduced by 49.1%; while imports are
increased by only a very small rate (specifically, by 2.5%). Moreover, it achieves a
larger reduction in the Mean Absolute Percentage Error (MAPE), than the other
two methods. MAPE measures the difference of the induced imbalance from a
totally flat curve with a value of zero, which resembles perfect matching between
supply and demand. This is clearly visible when plotting the imbalance across
the time horizon for each method, as we do in Fig. 4a. Indeed, it is noteworthy
that V2G induces smaller peaks in the imbalance between demand and supply
than the rest of the methods.
In the second use case, we measure the total cumulative cost of EVs, when
increasing the duration of connection to chargers by 24 h compared to the original
data, by following the three different charging scheduling methods of the first use
case. The results of Fig. 3b show that by increasing the duration of connection,
the Lowest Price and V2G methods manage to gradually reduce the battery
charging costs. This happens since the longer an EV is connected to a charger,
the higher probability it has to find the most advantageous intervals to buy
energy at from the grid— and also to sell it back to the grid in the case of V2G.
As anticipated, again, the V2G method leads to lower charging costs than the
(a) Imbalance using different charging (b) Adaptive pricing and NRG-Coin mech-
scheduling methods. anisms.
other two, and the difference (mirroring this V2G’s advantage) increases as the
duration of connection to a charger gets longer.
The third use case compares different pricing algorithms for the MD agent,
in particular the NRG-Coin pricing and the adaptive pricing. Both methods aim
to balance demand and supply, by setting higher prices for consumption during
problematic intervals of negative imbalance, and lower for those with positive.
The charging of EVs for this use case is performed according to the Lowest Prices
scheduling approach. Considering that EV agents are rational and aim to reduce
their expenses, the application of the two pricing algorithms results to demand
being shifted to utilize the generated energy more effectively, thus leading to
smaller peaks in the imbalance curve. Figure 4b shows that the algorithms have
a similar effect on the stability of the grid. In Table 2, we can observe a similar
behavior of reducing the wasted energy and a slightly outperform of NRG-Coin
on imported energy and MAPE reduction.
In the fourth use case, we count the total number of exchanged messages
required for the scheduling of charging using our proposed cooperation protocols
as the EV population increases. We report that we observed a linear increase in
the number of messages exchanged over a 10 days period (we do not present the
results in detail due to space restrictions).
References
1. Akasiadis, C., Pitsilis, V., Spyropoulos, C.D.: A multi-protocol IoT platform based
on open-source frameworks. Sensors 19(19), 4217 (2019)
2. Burke, M.J., Stephens, J.C.: Energy democracy: goals and policy instruments for
sociotechnical transitions. Energy Res. Soc. Sci. 33, 35–48 (2017)
3. Danner, D., Duschl, W., de Meer, H.: Fair charging service allocation for electric
vehicles in the power distribution grid. In: e-Energy 2019, pp. 406–408 (2019)
4. Espe, E., Potdar, V., Chang, E.: Prosumer communities and relationships in smart
grids: a literature review, evolution and future directions. Energies 11(10), 2528
(2018)
5. Hossein Motlagh, N., Mohammadrezaei, M., Hunt, J., Zakeri, B.: Internet of things
(IoT) and the energy sector. Energies 13(2), 494 (2020)
6. International Energy Agency: Global EV outlook: Towards cross-modal electrifi-
cation (2018)
7. Käbisch, S., Peintner, D., Heuer, J., et al.: The OpenV2G project. http://openv2g.
sourceforge.net/. Accessed 22 Apr 2022
8. Karfopoulos, E.L., Hatziargyriou, N.D.: A multi-agent system for controlled charg-
ing of a large population of electric vehicles. IEEE Trans. Power Syst. 28(2), 1196–
1204 (2013)
9. Ketter, W., Collins, J., Reddy, P.: Power TAC: a competitive economic simulation
of the smart grid. Energy Econ. 39, 262–270 (2013)
10. Lee, Z., Johansson, D., Low, S.H.: ACN-sim: an open-source simulator for data-
driven electric vehicle charging research. In: e-Energy 2019, pp. 411–412. ACM
(2019)
11. Liao, J.T., Huang, H.W., Yang, H.T., Li, D.: Decentralized V2G/G2V scheduling
of EV charging stations by considering the conversion efficiency of bidirectional
chargers. Energies 14(4), 962 (2021)
12. Lipman, T., Callaway, D., Peffer, T., von Meier, A.: Open-source, open-architecture
software platform for plug-in electric vehicle smart charging in California. Califor-
nia Energy Commission (2020)
13. Mahela, O.P., et al.: Comprehensive overview of multi-agent systems for controlling
smart grids. CSEE J. Power Energy Syst. (2020)
14. Mihaylov, M., Jurado, S., Avellana, N., et al.: NRGcoin: virtual currency for trad-
ing of renewable energy in smart grids. In: 11th International Conference on the
EU Energy Market (EEM 2014), pp. 1–6. IEEE (2014)
15. Sarkar, R., Saha, P.K., Mondal, S., Mondal, A.: Intelligent scheduling of V2G,
V2V, G2V operations in a smart microgrid. In: e-Energy 2020, pp. 417–418 (2020)
16. Savaglio, C., Ganzha, M., Paprzycki, M., et al.: Agent-based internet of things:
state-of-the-art and research challenges. Futur. Gener. Comput. Syst. 102, 1038–
1053 (2020)
17. Sheppard, C., Jenn, A.: Grid-integrated electric mobility model (GEM) v1.0. US
Department of Energy (2021). https://www.osti.gov//servlets/purl/1765949
18. Spanoudakis, N., Moraitis, P.: Engineering ambient intelligence systems using agent
technology. IEEE Intell. Syst. 30(3), 60–67 (2015)
19. Valogianni, K., Ketter, W., Collins, J., Zhdanov, D.: Sustainable electric vehicle
charging using adaptive pricing. Prod. Oper. Manag. 29(6), 1550–1572 (2020)
20. Wooldridge, M., Jennings, N.R.: Intelligent agents: theory and practice. Knowl.
Eng. Rev. 10, 115–152 (1995)
21. Zambonelli, F.: Key abstractions for IoT-oriented software engineering. IEEE
Softw. 34(1), 38–45 (2017)
Investigating Effects of Centralized
Learning Decentralized Execution on Team
Coordination in the Level Based Foraging
Environment as a Sequential Social Dilemma
1 Introduction
Multi Agent Reinforcement Learning (MARL) has emerged as an efficient, per-
formant tool to solve complex tasks. Most high-profile investigations focus on
scenarios with joint team rewards [12,19], as the success of MARL systems relies
on a clear, task-relevant reward signal.
Unfortunately, there are many potential application scenarios that do not
favour or allow a joint reward function for security, privacy, implementation, or
task reasons. In these situations, individual agents receive rewards that are based
on their own state action trajectories, rather than being a signal that represents
the performance of the team based on all members state action trajectories. This
increases task difficulty due to decrease in information about team performance
in the reward signal resulting in misalignment between agents and team goals.
Seeing as MARL algorithms maximize reward for each agent, it is possible for
the task to exhibit elements of a Sequential Social Dilemma (SSD) that could
be detrimental to the completion of the task.
In a SSD, agents have to choose between two broad policy categories: col-
laboration with other agents or defection prioritizing themselves. When agents
c The Author(s), under exclusive license to Springer Nature Switzerland AG 2022
F. Dignum et al. (Eds.): PAAMS 2022, LNAI 13616, pp. 15–23, 2022.
https://doi.org/10.1007/978-3-031-18192-4_2
16 P. Atrazhev and P. Musilek
2 Background
2.1 Multi Agent Reinforcement Learning (MARL)
Cooperative Tasks: We define a cooperative task as a Markov Multiagent
Environment which consists of the tuple M = <D, S, A, T, O, o, R, h, b0 > [11].
Where D is the set of agents, S is the set that describes the true state of the
environment, A is the joint action set over all agents, T is the transition proba-
bility function, mapping joint actions to state. O is the joint observation set, o
represents the observation probability function, R is the reward function which
Investigating Effects of CLDE on Team Coord. in the LBF Env. as a SSD 17
describes the set of all individual rewards for each agent (joint reward) R = Rti .
The horizon of the problem, h, is equivalent to the discount factor γ in RL
literature. The initial state distribution is given by b0 . M describes a partially
observable scenario in which agents interact with the environment through obser-
vations, without ever knowing the true state of the environment. When agents
have full access to state information, the tuple becomes <D, S, A, T, R, h, b0 >
and is defined as a Multiagent Markov Decision Process (MMDP) [11]. When
the whole team receives a joint reward value
N taken as the sum of all individual
agent rewards R = Ri = ... = RN = i=1 Rti the setting returns to the de-
facto MARL setting known as the Dec-POMDP [11], and is known as a fully
cooperative tasks.
The most prevalent difference between these two task types is that in the
cooperative task each agent will experience a reduction in frequency of rewards
that it experiences since it wont receive any reward from the actions of other
agents on the team. Cooperative task rewards therefore are more stochastic
in nature as agents that do not participate in reward events do not receive
rewards, which can lead to slower convergence rates or in extreme cases, failure to
converge. However, the reward that each agent experiences is now due entirely to
that individual agent’s policy. This can offer a truer signal for policies to be based
on, leading to faster convergence rates and possibly higher rewards. The linking
of reward to individual agent policy may cause agents to act greedy to their own
policy rather than trying to optimize a joint team policy, which can turn a team
objective into a sequential social dilemma. It is unclear if individual rewards in
team MARL settings will increase team coordination or be a detriment.
CLDE is the current state of the art method for using MADRL on fully cooper-
ative problems. This method attempts to coordinate agents by training agent’s
individual policies using a centralized system that conditions over all agents
observations [8,14,20]. During execution, agents only condition on their local
observations and rewards. This allows for the creation of collaboration without
requiring that agents share any information with each other at run time. CLDE
methods fall into two categories: the centralized policy gradient methods [8,9,20]
and the value function decomposition methods [14,18].
3 Related Work
4 LBF as a SSD
We show that the cooperative version of the LBF (CLBF) task becomes a com-
mons type SSD similar to the stag hunt problem [3]. The payoff structure is
shown in Table 1. As in the stag hunt problem, agents in the CLBF environment
coordinate to collect the food resources spread out on the gridworld. Agents are
motivated by fear of being taken advantage of Rd (0.7) > Rc (0.3). This causes
two Nash Equilibria to emerge: C, C and D, D
Player 1/2 C D
C 0.5, 0.5 0.3, 0.7
D 0.7, 0.3 0.4,0.4
5 Experimental Design
In order to evaluate the effects of changing the task from a fully cooperative
task to a cooperative task we chose to repeat a recent benchmark in the LBF
environment [13]. By selecting a series of scenarios to study, we can directly
20 P. Atrazhev and P. Musilek
compare the results, and can attribute most differences to the increase in task
complexity due to the cooperative reward.
Tasks selected for this study are: 8x8-2p-2f-coop, 2s-8x8-2p-2f-coop, 10x10-
3p-3f and 2s-10x10-3p-3f. 2s indicates a observation radius of 2 squares, allowing
the study of partial observability. -p and -f indicate the number of players and
food in the gridworld. The -coop flag causes the game to enforce all agents be
present to collect food, thereby forcing the cooperative policy to be the only
policy that can be learned.
These tasks were selected because most algorithms were able to achieve max-
imum episode return in the joint reward context, and it is reasonable to assume
that the same algorithms would also be able maximize the episode return in
the individual reward setting. To evaluate algorithm performance, we calculate
the average returns achieved throughout all evaluation windows during training,
and 95% confidence interval across five seeds. Hyperparameter tuning was not
performed for this experiment to stay consistent with the hyperparameters used
for the LBF benchmark [13].
6 Results
The results of the selected algorithms are reported in Fig. 1, showing the normal-
ized evaluation returns. Figure 2 shows results from [13] with only the relevant
information from the experiments that we performed, allowing an assessment of
the effects of the change from fully cooperative to cooperative tasks.
Fig. 1. Episodic returns of all algorithms on CLBF showing the mean and 95% confi-
dence interval over three different seeds
Investigating Effects of CLDE on Team Coord. in the LBF Env. as a SSD 21
Fig. 2. Image taken from Papoudakis et al. [13] COMA and MADDPG traces have
been removed and only the relevant scenarios have been kept. These results show the
performance of algorithms on the fully cooperative
7 Conclusion
In this work we modify the EPYMARL package to allow for individual reward
assignments. We show that the LBF environment with cooperative reward
exhibits SSD properties similar to the stag hunt problem. We construct a pay-
off matrix and show that fear of being exploited is the primary driver of agent
defection. We further demonstrate that learning algorithms using action value
function estimation exhibit faster convergence in the cooperative setting with
individual rewards when compared to the fully cooperative setting with joint
rewards.
Future work will focus on detailed parameter tuning of the algorithms
employed in this work to deeper investigate detected trends in convergence
behavior. Further continuing this line of inquiry could involve adding more
value decomposition algorithms that can factor more general functions, such as
QTRAN [17]. Additionally, incorporating a linking layer between CEPYMARL
and the MeltingPot protocol [1,6] would offer the chance to see how CLDE algo-
rithms perform on a variety of SSDs with additional benchmarks to compare
to.
References
1. Beattie, C., Köppe, T., Duéñez-Guzmán, E.A., Leibo, J.Z.: DeepMind Lab2D.
CoRR abs/2011.07027 (2020). https://arxiv.org/abs/2011.07027
2. Christianos, F., Schäfer, L., Albrecht, S.V.: Shared experience actor-critic for multi-
agent reinforcement learning. In: Advances in Neural Information Processing Sys-
tems (NeurIPS) (2020)
3. Hughes, E., et al.: Inequity aversion resolves intertemporal social dilemmas. CoRR
abs/1803.08884 (2018). http://arxiv.org/abs/1803.08884
4. Kollock, P.: Social dilemmas: the anatomy of cooperation. Ann. Rev. Sociol. 24(1),
183–214 (1998)
5. Köster, R., et al.: Model-free conventions in multi-agent reinforcement learning
with heterogeneous preferences. arXiv preprint arXiv:2010.09054 (2020)
6. Leibo, J.Z., et al.: Scalable evaluation of multi-agent reinforcement learning with
melting pot. In: International Conference on Machine Learning, pp. 6187–6199.
PMLR (2021)
7. Leibo, J.Z., Zambaldi, V.F., Lanctot, M., Marecki, J., Graepel, T.: Multi-agent
reinforcement learning in sequential social dilemmas. CoRR abs/1702.03037 (2017).
http://arxiv.org/abs/1702.03037
8. Lowe, R., Wu, Y.I., Tamar, A., Harb, J., Pieter Abbeel, O., Mordatch, I.: Multi-
agent actor-critic for mixed cooperative-competitive environments. In: Advances
in Neural Information Processing Systems 30 (2017)
9. Mnih, V., et al.: Asynchronous methods for deep reinforcement learning. In: Inter-
national Conference on Machine Learning, pp. 1928–1937. PMLR (2016)
Investigating Effects of CLDE on Team Coord. in the LBF Env. as a SSD 23
10. Mnih, V., et al.: Human-level control through deep reinforcement learning. Nature
518(7540), 529–533 (2015)
11. Oliehoek, F.A., Amato, C.: The Decentralized POMDP Framework, pp. 11–32.
Springer, Cham (2016). https://doi.org/10.1007/978-3-319-28929-8 2
12. OpenAI: OpenAI five (2018). https://blog.openai.com/openai-five/
13. Papoudakis, G., Christianos, F., Schäfer, L., Albrecht, S.V.: Benchmarking
multi-agent deep reinforcement learning algorithms in cooperative tasks. CoRR
abs/2006.07869 (2020). https://arxiv.org/abs/2006.07869
14. Rashid, T., Samvelyan, M., de Witt, C.S., Farquhar, G., Foerster, J.N., Whiteson,
S.: QMIX: monotonic value function factorisation for deep multi-agent reinforce-
ment learning. CoRR abs/1803.11485 (2018). http://arxiv.org/abs/1803.11485
15. Samvelyan, M., et al.: The StarCraft Multi-Agent Challenge. CoRR
abs/1902.04043 (2019)
16. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O.: Proximal pol-
icy optimization algorithms. CoRR abs/1707.06347 (2017). http://arxiv.org/abs/
1707.06347
17. Son, K., Kim, D., Kang, W.J., Hostallero, D., Yi, Y.: QTRAN: learning to factor-
ize with transformation for cooperative multi-agent reinforcement learning. CoRR
abs/1905.05408 (2019). http://arxiv.org/abs/1905.05408
18. Sunehag, P., et al.: Value-decomposition networks for cooperative multi-agent
learning. arXiv preprint arXiv:1706.05296 (2017)
19. Vinyals, O., et al.: Grandmaster level in StarCraft II using multi-agent rein-
forcement learning. Nature 575(7782), 350–354 (2019). https://doi.org/10.1038/
s41586-019-1724-z
20. Yu, C., Velu, A., Vinitsky, E., Wang, Y., Bayen, A.M., Wu, Y.: The surprising
effectiveness of MAPPO in cooperative, multi-agent games. CoRR abs/2103.01955
(2021). https://arxiv.org/abs/2103.01955
Agent Based Digital Twin of Sorting Terminal
to Improve Efficiency and Resiliency in Parcel
Delivery
{s.dhandapani,solomon.m,p.sai}@tcs.com
1 Introduction
The pervasiveness of internet, widespread acceptance of mobile technology, and Covid19
pandemic related restrictions are revolutionizing the consumer behavior significantly.
Online shopping and e-commerce are becoming a new normal for most of the business
sectors. Product vendors are keen to make available products worldwide at an affordable
cost; suppliers are committing to just-in-time raw material supply to help manufacturers
reduce inventory cost; and Retailers are setting up virtual product stores to deliver prod-
ucts in ever-shrinking time window. All these are driving the need for flawless, speedy
and economic shipping. As an early indicator, the global e-commerce market is expected
to reach US$ 55.6 Trillion by 2027 from US$ 13 trillion in 20211 .
Inbound
Vehicle
Scanner
Outbound
Last-mile
Delivery
Vehicle
Infeed Sorting Belt
Outfeed
Different types
of Chutes
However, optimally delivering large numbers of parcels of different size and char-
acteristics across the globe with certainty in a dynamic and uncertain world is a sig-
nificant challenge for Courier, Express and Parcel (CEP) companies. Until now, these
CEP companies managed to fulfill shipment demands with a relatively static network of
collection centers, sorting terminals, transportation, and last-mile connectivity as illus-
trated in Fig. 1(a). To get and manage assignments, logistic companies have strategically
placed collection centers to collect parcels; transportation machinery takes these parcels
to sorting terminals; sorting terminals sort the parcels identifying their destinations;
transportation machinery takes these parcels to the right delivery centers; and the last-
mile delivery machinery delivers the parcels to customer doorstep. To capitalize on the
increasing parcel delivery demand in ever-shrinking time window, CEP companies are
trying to improve their parcel delivery capabilities along three dimensions: optimum
vehicle management [1, 2], efficient last-mile delivery [3], and sorting terminal through-
put. While the first two dimensions can be satisfactorily addressed using sophisticated
algorithms and (on-demand) vehicles/carriers as reported in [4], improving throughput
of the sorting terminal is a much complex task. It calls for accurate parcel arrival fore-
cast, automation aids, and strategies for efficient operation. CEP companies have several
automation aids spread across a wide spectrum of sophistication to choose from e.g.,
automated in-feeds to onboard parcel to be sorted, scanners to scan the parcels, tilt-tray
sorting belt, different kinds of chutes to collect the sorted parcels, and outfeeds to load
parcels for transporting. Even as technologies continually improve over time, several
concerns are becoming critical. For instance, identifying the best configuration of the
sorting terminal for the expected payload in terms of the choices for each automation
aid, deciding the number of human operators to be allocated and assigned to individual
1 https://www.imarcgroup.com/e-commerce-market.
26 S. Barat et al.
automation aids to maximally leverage the chosen configuration, and determining where
to invest more (i.e., replace/redefine) and when in order to maximally garner the shipment
demand. Precise and continuous evaluation of these concerns will help CEP companies
to be more efficient and resilient in dynamic and uncertain operating environments.
Toward this end, we propose an agent-based simulatable digital twin of sorting termi-
nal as an “in-silico” experimentation aid for: analysis (e.g., explain the bottlenecks lead-
ing to sub-optimal operation of the sorting terminal), adaptation (i.e., evidence-backed
identification of appropriate changes leading to enhanced throughput), and design (i.e.,
explore new ways to achieve more). To faithfully represent a sorting terminal and its
constituent cyber-physical systems, we adopt the concept of system of systems [5] and
capture constituent systems such as infeed, scanner, sorting belt, tilt-tray of the sorting
belt, chute and people, as parameterized and modular agents/actors [6]. Interactions
between constituent systems (i.e., agents) are specified using discrete events, and micro
behaviors of constituent agents are specified using a combination of techniques, such as:
static rule-based event-condition-action (ECA) [7] for deterministic behaviors, proba-
bilistic model for nondeterminisms (mainly for people’s behaviors), and physics-based
model to mimic certain physical phenomena (e.g., filling up a chute with parcels of dif-
ferent size). We use agent-based bottom-up discrete event simulation to understand the
overall behavior of a sorting terminal that emerges from nondeterministic micro behav-
iors of the constituent agents and their interactions. Simulation with different parameter
values of constituent agents and replacement of agents with alternate sets of agents
(with hypothetical behaviors) helps experiment with candidate adaptation and design
alternatives.
The rest of the paper is organized as follows. Section 2 presents complexities of
a sorting terminal and evaluates the state-of-the-art optimization techniques. Section 3
introduces our sorting terminal digital twin. The efficacy of the proposed digital twin is
discussed in Sect. 4. Conclusions and future work constitute Sect. 5.
2 Problem Statement
Sorting terminal will deliver optimal throughput when: the parcels spend as less time on
the sorting belt as possible, the chutes get emptied as fast as possible, and as few packets
remain on the belt unsorted as possible, thus necessitating human intervention (refer
Fig. 1(b)). The key operational challenges with sorting terminal are: defining suitable
equipment configuration (how many chutes of different kinds, and which infeeds need
to be operational etc.), defining the sorting logic (i.e., which parcels should get collected
at which chute), and assigning workforce for chutes, infeeds and outfeeds. Current
practice addresses these challenges in a manner that is largely manual and experience
driven. Experts design appropriate sets of experiments that are conducted on the sorting
terminal in a sand-boxed environment which is intensive in terms of time, effort, cost
as well as operator intellect and experience. Moreover, it is risky as the ripple effects of
outlier situations may put the entire network to risk.
Agent Based Digital Twin of Sorting Terminal 27
3 Approach
A sorting terminal is a composite unit where parcels arrive in batches at discrete time
intervals (i.e., based on vehicle arrivals) and the sorted parcels are sent to next destination
point as shown in Fig. 1(b). The primary equipment of a sorting terminal is a sorting
28 S. Barat et al.
carries
Parcel scans
collects
0..* feeds Feeder
0..* 0..* 0..* 0..* feeds
0..1 Tilt Sorting
Parcel
outbound
Infeed
inbound
Vehicle contains Tray Logic
controls
0..*
0..* sorts 1..* 1..* feeder
1..* 1..* slots sortingLogic
Sorting Sorting 1..*
Equipment
inbound has Scanner controls
Terminal Zone Belt scanner Configurator
outbound 1..* 1..*
chutes
Legends Resource allocates controls
Staff manages
Chute
Passive Agent Allocator 1..*
Mechanical Agent
Logic Agent loadedTo Roller Direct Spiral Boom Rejection
Vehicle
1 0..* Cage Chute Chute Conveyor Chute
Physical Container
1..* 1 contains
Human agent emptiedInto
Fig. 2. A schematic view of agent topology for sorting terminal digital twin
belt, which may spread across hundreds of meters and comprises multiple tilt trays that
hold parcels. The parcels unloaded from the inbound vehicles are put onto the sorting
belts using a set of infeeds - a physical connector with rolling belt. The sorting belt is
equipped with multiple scanners that identify the destination for parcels. The parcels are
collected in the designated chute for further distribution. For operational convenience,
a sorting terminal is typically visualized as a set of zones – a logical decomposition of
the area for managing people (i.e., staff) and equipment. An agent topology and various
types of agents describing the constituent elements of a sorting terminal are highlighted
using different colors in Fig. 2.
Parcels: A parcel is a passive element with no specific behavior2 . However, their unique
characteristics (i.e., weight, height and destination) contributes to the sorting logic. We
capture their individualistic characteristics as a passive agent.
Mechanical Units: The equipment or mechanical units (e.g., sorting belt, infeed and
scanner) and their parts are governed by a set of well-defined behavioral rules with a
certain failure possibility. For example, a sorting belt contains multiple tilt trays (i.e.,
slots) and helps them to move with a pre-configured speed. A tilt tray with specific length
and width carries a parcel and drops it at a designated chute (decided by the sorting logic)
if the chute is not blocked when tilt tray is aligned with the destination chute. A tilt tray
maintains the circulation count of a parcel and triggers a drop instruction to the rejection
chute after the maximum number of allowed attempts, which is known as the circulation
count – a configurable parameter as shown in Fig. 3(c).
An infeed has a belt that moves at a pre-configured speed to transfer parcels from
the inbound area to the sorting belt and places them into a tilt tray (one parcel on one
tilt tray). A scanner reads the barcode of the parcel to get the information necessary
for sorting. All these machines work with a certain degree of accuracy with respect to
their pre-defined rules and may encounter certain failures (i.e., known unknown). We
capture their characteristics as configurable agent parameters, behavior as set of rules
(i.e., ECA specification) and failure uncertainties as a probability function embedded
2 Parcel behavior becomes important when it carries perishable items or one would like to explore
damage propensity from sorting operation, which is out of scope for this paper.
Agent Based Digital Twin of Sorting Terminal 29
(b) Illustrative parcel feed specification (e) Illustrative resource description & allocation
into behavioral specification where the probability ranges are typically derived through
heuristic and/or analyzing historical occurrences. The external and internal interactions
and instructions are realized as events or messages passed between agents. An illustration
of the configurable elements of a sorting terminal are shown in Fig. 3(a) and their
parameters are highlighted in Fig. 3(c).
Containers: The containers, such as different types of chutes and roller cages, are
primarily passive elements, i.e., they have capacity and no explicit behavior as such.
However, they contribute to an interesting emergent behavior that may cause block-
age when heterogeneous parcels start falling into them in a random order. In reality,
a container is considered as blocked, typically detected through camera sensor, when
no more elements can be accommodated without removing them or compressing them
using some technique.
We replicate the container blockage phenomena in the virtual world by carefully
reflecting on well-studied container packing problem [10]. Empirical results in the liter-
ature show that the density of a packed container may differ from 52% (loosely packed)
to 74% (densely packed) based on the element size, shape and the characteristics of the
container. We consider the concept of Random Close Packing (RCP) [11] and Random
Loose Packing (RLP) [12] along with the established empirical findings about the pos-
sible density of the container to determine container blockage behavior. Typical sorting
terminals contains four types of chutes: direct, spiral, boom conveyor, and rejection
chutes. The direct chute uses a roller cage, i.e., an up-side open cuboid, as a container
where parcels are dropped from the top (i.e., parcel uses gravitational force to accom-
modate a position inside the container). Therefore, their behaviors closely match with
RCP and the density at which the blockage can be observed, we term it as blockage
density, typically varies from loosely packed to densely packed situations with a bias
30 S. Barat et al.
towards densely packed limit. In particular, the blockage density (between two limits)
is computed based on the parcels which are dropped at a given instance, i.e., number
of bigger parcels is inversely related to blockage density in our digital twin. The spiral
chute is a curved pathway having a descent to a lower level along with an extended
open platform to temporarily hold the parcels. The behavior matches with RLP, and the
blockage propensity depends on the size and weight of the parcels (as it moves against
frictional force at the extended part of the spiral chute. The boom conveyor chute is a
moveable belt that directly connects with outfeed – we define its characteristics by defin-
ing the belt speed and failure propensity. A rejection chute is a special container with
a large volume (i.e., a designated area within sorting terminal) where parcels rejected
by all chutes due to scanning error, chute blockage, malfunction of tilt tray and several
other factors are stored and manually reintroduced into the sorting belt with a specific
delay. We model the delay in rejection chute as the function of staff availability and their
productivity.
Staff: The people or staff, who interact with the machines and containers, perform well
defined tasks that include a) picking up parcels from spiral chute and place them into
the roller cage, b) take filled roller cages to the outfeed, c) replace roller cage of direct
chute when it is full and take them in outfeed, d) inspect and rectify the issues with
the parcels in the rejection chute, and e) address other mechanical blockages and faults.
They perform specific/instructed activities with uncertainties. As an example, a person
can lift and place 120 parcels from a spiral chute into roller cage in an hour as a standard
for a sorting terminal. However, the individual productivity can vary from 30% to 110%.
Moreover, the individual productivity can differ with time (due to sluggishness) and
individuals can be unavailable for certain time periods. We model people as stochastic
agents, where individual behavior and the associated uncertainties are specified as rules
(ECA) with temporal nondeterminism and the limits of the nondeterministic behaviors
are defined as configurable parameters (see Fig. 3(e)).
Logic Units: Sorting terminal has several logic units that are either closely embedded
with the physical systems, such as sorting belt and tilt tray, or produce instruction for the
staffs about specific task (e.g., scanning a parcel on a spiral chute indicates appropriate
destination roller cage for the staff). Therefore, these units are typically static or dynamic
rules about performing tasks.
A sorting logic is set of rules about parcel-to-chute allocation as shown in Fig. 3(d).
Equipment configuration is about deciding which machine to operate when and using
what parameters (or configuration), such as maximum circulation count of parcels as
highlighted in Fig. 3(c). The resource allocator is a resource planner that decides who will
work where and for how long. These strategic logic units may define rules over different
time scales. For instance, sorting logic is defined for a shift/day; resource allocation
changes in every shift, and equipment logic is typically set for a month or more. We
capture these units as parameterized rule-based temporal agents that can send events
to other units based on the situation. Parameterized realization of these units helps to
explore hypothetical scenarios for quantitative evaluation.
Environment Elements: We approximate the rest of the network using two agents
namely: Feeder and Vehicles. The feeder agent can introduce any number of parcels with
Another random document with
no related content on Scribd:
The peasants whom we met had sprigs of olive stuck in their hats.
This was the olive season, and we saw the women and children
picking up the fruit under the trees. When the olives are ripe, they
turn black and drop from the trees. The oil is squeezed from them by
a common press. The olives used for pickling are taken from the tree
before they are ripe.
At noon we arrived at Mola di Gaeta, one of the most delightful
spots I ever beheld. It stands on the sea-shore, and is skirted by a
range of lofty hills covered with orange groves. The trees were laden
with fruit as bright as gold. The fresh green foliage, the clear sky, the
blue sea, and the white towers of Gaeta which appear on a
promontory stretching out into the ocean, all combine to form a most
enchanting prospect. I do not wonder that Cicero chose this spot for
his country-seat; here they showed us the spot where, according to
Plutarch, he was killed. Further on we continued to find the same
abundance of olive trees: this appears to be a great oil district. A
range of rocky mountains at a distance seemed to consist of nothing
but naked crags; but the plains and low hills are under good
cultivation. The soil in most parts is very rich, and the country wants
nothing but a good government and an industrious people, to make
the kingdom of Naples one of the most flourishing territories on the
face of the earth. In the afternoon we traversed a steep, narrow
mountain pass, and entered upon a wild, rugged country. I got out of
the carriage and trudged along on foot, for the road was so hilly that I
could keep ahead of the horses. The country exhibited quite a
solitude; there was neither house nor human being to be seen for
miles. Suddenly the notes of a wild kind of music fell on my ear, and
looking down a rocky glen, I discovered a shepherd tending his flock,
and piping on a reed in the true Arcadian style. It was the first
genuine spectacle of pastoral life that I had ever seen, and I halted
some minutes to take a view of him. Very pretty poems have been
written about pastoral manners, in which shepherds and
shepherdesses make fine romantic figures. The sight of a real
shepherd, however, is enough to dissipate all the romance of this
subject. This fellow wore the true pastoral dress, jacket and leggins
of sheepskin, with the wool outside!—a more ragged, scarecrow-
looking object never met my eyes. I would give a round sum of
money to get one of these Neapolitan shepherds to show himself in
the streets of Boston. An Indian sachem would be nothing in
comparison to him.
The country continued wild and broken till we reached Fondi, a
town among the mountains, once notorious for its robberies. These
were carried on so openly and to such an extent, that the
government were obliged to surround the town with troops, and
threaten to batter every house to the ground with cannon, unless the
leaders of the banditti were given up. Since these fellows have been
hanged, and the roads guarded with soldiers, travelling has been
pretty safe. But nothing except force prevents the inhabitants of
Fondi from resuming their old habits of robbery. I never saw so
villanous-looking a set of ragamuffins anywhere else. Every man and
boy in the town has the genuine countenance of a cut-throat; and the
women do not look much better. We stopped here just long enough
to get our passports examined; but that was long enough. Though
the people are not allowed to rob, they almost make up for it in
begging; for their impudence and obstinacy in this business nearly
amount to violence. The whole population were either crowding
around us, begging, or lying in crowds about the church steps, lazily
sunning themselves. I longed to stir up the louts, and set them to
work. From laziness to begging, and from begging to robbery, is a
regular and almost inevitable progress.
The road beyond Fondi ran along the shores, and in the afternoon
we reached the territory of the Pope. The first sight we saw here was
a herd of buffaloes in a field. These animals are tame, and used the
same as oxen. They are not like the buffalo, or, more properly, bison
of the western prairies, but a distinct species of quadruped. At night
we reached Terracina, the first town in the papal dominions. It stands
on the seashore, at the foot of a lofty, precipitous rock. During the
night the wind was high, and drove a heavy surf upon the beach. A
bright moonlight made a stroll along the shore very pleasant. In the
morning the wind had gone down, and we recommenced our
journey. Here we entered upon the famous Pontine marshes, over
which the road passes nearly thirty miles in a straight line, and a
great part of the way bordered by trees. These marshes consist of
swampy and boggy tracts, with lagoons of water and patches of dry
pasture-land interspersed here and there. Herds of buffaloes and
black swine were roaming about in the dry spots, and the lagoons
were covered with flocks of wild ducks and other waterfowl; but not a
human being or a house was to be seen. These marshes breed so
pestilential an air in summer, that the neighborhood is uninhabitable.
They are bordered by a range of mountains on one side, and on the
other by the Mediterranean.
There were no thick woods anywhere to be seen; a few scattered
cork and ilex trees were all that met the eye. The mountains were
bare to their very summits. The country, after passing the marshes,
became very beautiful, and as we approached the town of Velletri we
beheld the most enchanting landscapes. Here, for the first time, I
heard the nightingale. He sings in the most lively and voluble strain,
and is well worthy of his great reputation among the feathered
songsters; but there is no American bird whom he resembles in tone
or manner. We stopped for the night at Velletri, which stands on a
commanding eminence, with an almost boundless prospect toward
the south. On the other side, you look down a deep valley and up the
side of a mountain beyond, covered with verdant fields, gardens,
vineyards, and every variety of cultivation.
Rome was now but twenty-four Italian or eighteen English miles
distant. The morning broke delightfully, and my impatience to see the
great capital of the world was at such a height, that I would not wait
for the carriage, but set out on foot. Long strings of wagons were
coming from Rome, having left that city late the preceding night. It
was amusing to notice that the drivers were nearly all fast asleep.
The horses were eating all the way, each one having a bundle of hay
tied to the head of the shaft in such a manner that he could help
himself. The road over which I was passing was the celebrated
Appian way, and is paved neatly and durably with square stones laid
diamond-wise. As the day drew on, I met the country people going to
their work. The women have a curious head-dress, consisting of a
square fold of cloth, starched stiff and laid flat on the top of the head,
often fastened with a silver pin as big as a kitchen skewer.
Two or three more small towns on the road could not induce me
to slacken my pace towards the great object of my curiosity. At
length, about the middle of the forenoon, as I ascended a steep hill, I
caught sight of a lofty dome at a distance, which I instantly knew for
St. Peter’s! Rome indeed was before me!—a sight which no man can
behold for the first time without emotions impossible to describe. I
stopped involuntarily. A wide plain extended from the foot of the
eminence on which I stood to the walls of Rome. Long lines of
aqueducts, ruined towers, and broken masses of walls and other
architecture, chequered the surface of the plain; and the whole
exhibited a striking spectacle of ruin and desolation. This was the
Campagna di Roma, which, in the day of its prosperity, was covered
with houses and gardens, the suburbs of the great city. Now,
everything is still, solitary and lifeless. As I approached the city, I saw
nothing around me but fields without fences, overgrown with
brambles; not a house nor a garden, nor a human being, except here
and there a ragged shepherd watching his sheep, which were
browsing among the ruins! Nearer the city, I passed occasionally a
field of wheat, and now and then a house; but hardly any people
were to be seen, and nothing of the hurry, life and bustle which
indicate the neighborhood of a populous city. This spectacle of
solitude and desolation continued even after passing the gates of
Rome; for half the territory within the walls is an utter waste.
No. IV.
The two youths were much struck by these lines; and, before they
parted, both had agreed to make the experiment and try to live
according to the inscription. They were not only anxious to gain
admittance to the beautiful garden, but the idea of adopting a plan
like that proposed had something of novelty in it; and this is always
pleasing to the ardent heart of the young.
I need not tell the details of their progress in their trial. Both found
the task they had undertaken much more difficult than they at first
imagined. To their surprise, they found that following this rule
required an almost total change of their modes of life; and this taught
them, what they had not felt before, that a very large part of their
lives—a very large share of their thoughts, feelings and actions—
were wrong, though they were considered virtuous young men by
the society in which they lived.
After a few weeks, the younger of the two, finding that the scheme
put too many restraints upon his tastes, abandoned the trial. The
other persevered, and, at the end of the year, presented himself at
the arched gateway of the garden.
To his great joy, he was instantly admitted; and if the place
pleased him when seen dimly through the trellis, it appeared far
more lovely, now that he could actually tread its pathways, breathe
its balmy air, and mingle intimately with the scenes around. One
thing delighted, yet surprised him—which was this: it now seemed
easy for him to do right; nay, to do right, instead of requiring self-
denial and a sacrifice of his tastes and wishes, seemed to him to be
a matter of course, and the pleasantest thing he could do.
While he was thinking of this, a person came near, and the two
fell into conversation. After a little while, the youth told his companion
what he was thinking of, and asked him to account for his feelings.
“This place,” said the other, “is the Garden of Peace. It is the abode
of those who have adopted God’s will as the rule of their lives. It is a
happy home provided for those who have conquered selfishness;
those who have learned to put aside their passions and do their duty.
At first, it is difficult to do this; for, in early life, we adopt wrong
courses, and habit renders them easy. These habits become our
masters, and it is hard to break away from them. But if we triumph
over these habits, and if we adopt others, of a virtuous kind, then it is
easy to follow them; and the peace that flows from virtuous habits is
beyond the power of words to express. This lovely garden is but a
picture of the heart that is firmly established in the ways of virtue.
Her ways are ways of pleasantness, and all her paths are peace.”
While the companions were thus conversing, and as they were
passing near the gateway, the youth saw on the other side the friend
who had resolved to follow the inscription, but who had given over
the trial. Upon this, the companion of the youth said, “Behold the
young man who could not conquer himself! How miserable is he in
comparison with yourself! What is it makes the difference? You are in
the Garden of Peace; he is excluded from it. This tall gateway is a
barrier that he cannot pass; this is the barrier, interposed by human
vices and human passions, which separates mankind from that
peace, of which we are all capable. Whoever can conquer himself,
and has resolved, firmly, that he will do it, has found the key of that
gate, and he may freely enter here. If he cannot do that, he must
continue to be an outcast from the Garden of Peace!”
The Banana.
chapter xviii.
We are told that the wandering Arabs, after the day’s march over
the desert which they love to inhabit, gather in groups at night and
amuse each other by telling tales. It always seemed to me that a
story under these circumstances would be more interesting than if
told in the house, by the quiet fireside; for the feelings and fancy are
apt to be excited when there is nothing but the heavens above us
and the wide landscape around us. Certain I am that Mat Olmsted’s
story of the Chippewa Chief and his bride Meena, seemed far more
interesting from the fact that it was related in the woods, by the side
of a watch-fire. It must be understood that my friend was no scholar;
and, though I have mended his language as to the grammar, I have
not added to its point or significance. His Yankee phrases and tone
gave additional force to his narrative; and, owing to this and the
circumstances under which he told his tale, it made such an
impression on my mind, that I remember it better than anything else
which has lain so long in memory.
I slept pretty well during the night, though I waked up several
times, and saw Mat with one eye open, at my side. Feeling that I had
a faithful sentinel to keep guard, I fell back into my repose. The sun
rose at last. It was a beautiful frosty morning, and the black and gray
squirrels were enlivening the woods with their merry gambols. I
should gladly have stayed in the place for a long time, and really
began to feel that I should like to turn Indian and make the forest my
dwelling-place. But this was momentary: we soon began our march,
and entering the high road, proceeded on our way to Albany.
I have not time or space to tell all the little adventures we met with
—all the good jokes Mat uttered, or the smart speeches he made. I
must hurry on in my story, for I am afraid that, if I do not, my readers
will think it like the old woman’s stocking—the more she knit, the
further she got from the end of it.
We reached Albany in a few days, and finding a sloop about
departing for New York, we concluded to take passage in her and go
to that city. This was a little out of our way, but we did not mind that.
The captain of the vessel was a Dutchman, and his name was Dyke.
He was a short, stout, broad-shouldered man, and his pantaloons
were made somewhat like petticoats hitched up between his legs.
He had a pipe in his mouth nearly the whole time; and such clouds of
smoke as he did send forth! Puff, puff, puff! Mat Olmsted called him
Captain Volcano, more than half the time. However, he was a good
sailor, and he managed the sloop very well.
Beside Mat and myself, there was a young man on board, who
had been collecting furs from the Indians, and was now proceeding
to sell them at New York. He was a pleasant fellow, and such lots of
stories as he and Mat and the Dutch captain told, I never heard
before. I could fill a book with them; but I shall only give a sample
from each of the narrators.
One moonlight evening, as we were gliding down the Hudson
river, its broad bosom seeming like a sea of silver, we were all
seated on the deck of the vessel, the captain, as usual, puffing at his
pipe as if he was carrying on a manufactory of clouds, and was paid
by the hogshead. For some time there was a dead silence; when at
last the captain took his pipe from his mouth, and gravely remarked
that his father was the bravest man that ever lived.
“How so?” says Matthew.
“Look there,” said Captain Dyke, pointing to a little island in the
river, which we were then passing. “That island,” he continued, “was
once the resort of Captain Kid, the famous pirate, who had a fine
ship in which he sailed over the world, and, robbing every vessel he
met of its money, collected a vast deal of gold and silver. After a long
voyage, he used to sail up this river and bury his money on this
island. When I was a boy, there was a hut still standing there, which
was said to have been built by Kid himself.
“There were a great many wild stories told about this hut; for it
was said that the captain and his crew used to hold their revels
there. Long after the famous freebooter was hung, and his
companions were dead, it was maintained that strange noises were
heard in the hut, and several persons who had peeped in at night
declared that they had seen Kid there in the midst of his jolly sailors,
all of them drinking, singing, and telling wild tales of the sea.
“Now my father, as I said, was a brave man, and he offered to
sleep in the hut one night for a bottle of brandy. This banter was
accepted, and my father was put over to the island in a boat and left
to himself. He had taken care to have the bottle of brandy with him.
He repaired to the hut, and sat himself down upon a sailor’s chest
which chanced to be there.
“There was no furniture in the room, save a rough table which
stood in the centre, and an old-fashioned high-backed chair. My
father placed the bottle on the table, and which, by the way, was one
of your deep craft, with a long neck, and holding somewhere about
half a gallon.
“After sitting nearly an hour upon the chest, all the while looking at
the bottle, which glimmered in the moonlight that stole between the
rafters of the hut, my father laid himself down on the floor and tried to
go to sleep. He had not lain long, however, before the bottle slid
gently off the table, and then began to lengthen, till it grew up as tall
as a woman. Pretty soon it assumed the shape of one of my father’s
sweethearts, and beckoned to him to come and kiss her! With this
request he complied, of course, and then they fell to dancing in a
very merry style. As they were whirling round and round, the old
chair began to bob about, and at the same moment the rickety table
rocked to and fro, then whirled round and performed a pirouette
upon one of its legs. A moment after, these two joined hand in hand
with my father and his sweetheart, and round and round they flew.
Everything went on like a regular cotillon. It was back to back, cross
over, right and left, chassez, and balance to partners! My father was
in great spirits, and he performed the double shuffle to admiration.
The old table did the same, the high-backed chair followed, and Miss
Bottle beat them all. Such pigeon-wings as she executed never were
seen before! The whole party caught the spirit of the moment, and it
now seemed to be a strife to see which would surpass the rest in
feats of grace and agility.
“My father had seen many a frolic, but never such a one as that;
and, what was remarkable, the dance seemed constantly to increase
in quickness and merriment. The top of the table looked like the jolly
face of a Dutchman, the mouth stretched wide, and the eyes
goggling with laughter. The old chair seemed to nod and wink with
elvish mirth; and the maiden, who all the time appeared to have a
queer resemblance to a bottle, frisked and flirted the gayest of the
party. On went the dance, until my father was entirely out of breath;
but there was no cessation to the sport. There seemed to be an old
fiddler standing in one corner, but nothing save two eyes and his
elbow were distinctly visible. The latter flew more rapidly every
moment, the music quickened; and the dancers kept time. For seven
hours my father performed his part in the dance, until, at last, he
reeled, and, falling forward, knocked the table, the chair, and the
bottle all into a heap. The vision immediately vanished, and soon
after there was a rapping at the door. The people had come over to
the island, for it was now morning. They found my father in a swoon,
lying across the table, the chair crushed, and the bottle broken in a
hundred fragments, which lay scattered on the floor.”
“A strange story that,” says Matthew, as the Dutchman paused;
“but I wish to ask one question. Was there any liquor upon the floor
where the bottle was broken?”
“Not a drop,” said the Dutchman; “and that’s a good proof that old
Nick himself was there to drink the liquor.”
“No, no,” said Matthew, significantly; “it only proves that your
father kissed Miss Bottle a little too often; so he got drunk and had
the nightmare, and all this scene was a vision of his brain! This
proves that your father could drink two quarts of brandy in a single
night. I had an uncle who performed a greater feat than that in the
revolutionary war, for he captured a British officer with a sausage!”
“Indeed!” said the captain and the fur-trader both at once; “let us
hear the story.”
“Well,” said Matthew; “it happened thus. At one time during the
war, as you all know, Washington was situated with his little army at
Tappan, near the North river, while Sir Harry Clinton, the British
commander, with his troops, were at New York. The space between
the two armies was called the Neutral Ground, and it was chiefly
occupied by a set of people called Cow-boys. These fellows went
back and forth, trading with both parties, and cheating everybody, as
they could get a chance.
“Now my uncle, whose name was Darby, was a Cow-boy by
profession, but he was a patriot in disguise, as you shall hear. One
cold winter’s night he was trudging along over the road with a bag of
sausages on his back, going to sell them to General Putnam, whose
quarters were at the distance of three or four miles. As he was
walking along over a lonely part of the road, it being a little after
sunset and already growing dark, he heard a horse’s gallop at no
great distance. He was at the bottom of a hill, and in the midst of a
thick wood. Looking to the top of the hill, he saw a man on
horseback, who now began gently to come down the descent. My
uncle was not only made for a patriot, but also for a great general.
Believing that the man on horseback was a British officer, the idea
suddenly entered his head that he would capture him, if it should
appear that he was unarmed. Accordingly, he thrust his hand hastily
into his wallet, took out one of the frozen sausages, crooked it in the
shape of a pistol, and stood still in the middle of the road. The
stranger soon approached, and my uncle Darby called out, ‘Who
goes there?’ ‘You must first tell me who you are!’ said the person on
horseback. ‘That’s as we can agree,’ said my uncle; ‘for it takes two
to make a bargain in these parts.’ All this time, he was looking very
sharp to see if the man had any weapons about him, and perceiving
that he was unarmed, he sprang upon him like a tiger, seized the
horse by the bridle, and thrust the muzzle of the seeming pistol in the
face of the rider.
“‘Dismount, or I’ll blow your brains out!’ said Darby. My uncle had
a voice of thunder, and the astonished traveller expected every
moment to be shot through the body. It was no time for parley; so the
man dismounted, and my uncle, putting his foot in the stirrup, sprung
to the saddle in an instant. ‘Now,’ said he, ‘my pretty fellow, you must
go and see old Put. To the right about face, forward, march!’ The
man hesitated, but my uncle pretended to cock his pistol, and
pointed it at the man’s breast. This settled the question, and the poor
fellow began doggedly to ascend the hill. Following him close
behind, and keeping his weapon in a threatening attitude, he
conducted the man along the road, and in the space of about an
hour ushered him into the presence of General Putnam. On
examination, he proved to be a British sergeant, who was out upon a
frolic, and, wishing to pass as an American, had left his weapons
behind. The story made a vast deal of fun in the camp, and my uncle
acquired great renown for his exploit. But patriotism is often
rewarded with ingratitude. My uncle received the sergeant’s horse, it
is true, as a recompense, but he was called ‘Sassage Darby’ during
the remainder of his life.”
When Matthew had done, the captain turned to the fur-trader, and
said, “We have each of us told our story; it is now your turn to tell
one.” “Well,” said the young man in reply; “you have related an
adventure of your father; our friend Matthew has told one of his
uncle; I will now relate one of myself.”
“When I was a boy, I read Robinson Crusoe, and so I had a great
fancy for going to sea. Nothing would do, but I must be a sailor. My
father and mother were both opposed to it; and, finding it impossible
to obtain their consent, I resolved to run away. Getting together a
little money, I packed up my clothes, and one night set off for New
London in Connecticut, a distance of about twenty miles from where
I lived. I there entered on board a schooner bound for Boston, which
sailed the next day. There were but five persons on board,—the
captain, his two sons, one sixteen and the other seventeen years
old,—an old sailor, and myself.
“It was the beginning of winter, but the weather was uncommonly
fine, and in a short time we were out upon the sea. We scudded
along with a light wind for a couple of days, when there was a
sudden change of weather. It first blew from the southeast, and
rained smartly. I was a little sea-sick, but still able to keep upon the
deck. The storm increased, and the wind shifting to the northeast, it