My MSc Poster for VRP and fast heuristics

Published on: Apr 5, 2012

I want to upload some material about my MSc Dissertation. Here, I let you the poster made by the poster exhibition held in Heriot-Watt University in August 2009. The subject of my dissertation was the Vehicle Routing Problem and, in this project, I have the opportunity to create a new fast metaheuristic to cope with this NP-hard problem and then I compared the results achieved with a Genetic Algorithm approach. In some weeks, I would like to upload the code.


Posted by on April 5, 2012 in Dissertation, Genetic Algorithm, Metaheuristics, VRP


Repast Simphony: Run a method at the end of the simulation

Published on: Mar 26, 2012

I need to update some files just at the end of my simulation. The Outputters have given me a lot of problems and I need more functionality to gather and compute data. The problem is that, at that point, I only know that my simulation finishes when the stop button is pushed. Unfortunately, the official information given by Repast Simphony about the Scheduler doesn’t say too much.

I checked in the API the classes related to the Scheduler and I found that there is a method in the class Schedule called executeEndActions() which executes all the actions scheduled to execute at simulation end. However how can I indicate that an action should be executed at the end?

Read the rest of this entry »


Posted by on March 26, 2012 in Agent-Based System, Repast Simphony


Online lectures on Agent-Based System

Published on: Mar 19, 2012

In the next link you can have access to a really interesting set of lectures about Agent-Based System from the School of Informatics of Edinburgh University. These lectures were recorded in 2007.

The lectures cover multiple aspects about this kind of cooperative modelling from a beginner level.

I have to say that I didn’t really have time to see all of them, but it seems a good resource to take into account. I hope it can help whoever works with ABS.


Posted by on March 19, 2012 in Agent-Based System


New release: a stable version of Repast Simphony 2.0

Published on: Mar 15, 2012

On 5 March 2012, the developer team of Repast Simphony released the new stable version 2.0.

According to the documentation the major change between both versions is that the data collection architecture and its GUI has changed from 2.0 beta to 2.0. However, at a first sigh,t the program seems the same, except the lattice which represents my city is properly centred on the panel ­čÖé

Installation in Linux

For linux users, the Eclipse version should be updated from Eclipse Helios 3.6.2 to Eclipse Helios 3.7.1 Classic Edition. Here is when we find the first problem: the most updated version of Eclipse Helios is 3.6.2 as we can see here, meanwhile the updated version of Eclipse Indigo is 3.7.2.

Read the rest of this entry »

1 Comment

Posted by on March 15, 2012 in Repast


How to stop and pause the model in Repast Simphony

Published on: Mar 7, 2012

The problem can be seen from different perspectives. Firstly, the model can be stopped because the simulation holds a determined condition, like for instance, if the simulation achieves a determined tick of the clock or if the total number of agents allocated in the lattice is greater than a certain number. The first of the cases can be programmed using the method of the class schedule called schedule.getTickCount(). The second one is shown in the following code:

@ScheduledMethod( start=1, interval=1,priority=ScheduleParameters.FIRST_PRIORITY )
public void spacer(){
    totalPopulation = context.getObjects( Agent.class ).size();
    //Stop the simulator
    if(totalPopulation > 100){
        if(schedule != null){
            System.err.println("Population more than 100. Stopping the system");

Read the rest of this entry »


Posted by on March 7, 2012 in Repast



Click automatically the play button in Repast from a script

Published on: Mar 1, 2012

This post belongs to a series of posts which allows me to start Repast Simphony automatically from a script. Please take first a look to:

Once I have fulfill to start Repast automatically from a script (click here for more info about that), I am going to use the library xdotool to click in the play button of Repast to start the simulation. Xdotool is a tool that simulate keyboard input and mouse activity, move and resize windows, etc..

First of all, I included the libraries of xdotool in the environment. In my case this is done with the following lines of code:


Read the rest of this entry »

1 Comment

Posted by on March 1, 2012 in Repast


Repast Simphony 2.0 beta and Java 7 in Linux

Published on: Mar 1, 2012

It was a very happy day when I arrived to my University and I tried to run the simulation as usually without success. When I though that the nightmare would continue I discovered that my normal IDE version failed as well. The error was the following:

Cannot construct repast.simphony.engine.schedule.ScheduleParameters as it does not have a no-args constructor

When I googled on that, I found this information here:

It looks like this is probably an issue with the xstream library that we use for serialization and Java 7. Are you using Java 7? If so, can you try with Java 6? Apparently the latest xstream fixes the issue so you could also download that replace the xstream jar in:


Read the rest of this entry »

Leave a comment

Posted by on March 1, 2012 in Java, Repast

%d bloggers like this: