Tuesday, September 10, 2013

Vehicle Routing Scheduler Library Released

Just complete a set up the website for the Vehicle Routing Scheduler Library released:

http://www.memeanalytics.com/vrplib/

The library currently consists of 16 meta-heuristic frameworks (including state-of-the-art meta-heuristic such as memetic algorithm, adaptive MA, hyper-heuristic, simulated annealing, memeplex-based algorithms, etc) each of which can solve 6 different vehicle routing problem variants at the moment which include: Capacitated VRP, VRP with Time Windows, Multiple Depot VRP, Stochastic VRP, VRP with Backhauls, VRP with Pickup and Delivery, or any mixes between these 6 variants. Its primary objective is to provide a platform for researchers and developers to design, experiment, and use vehicle routing solvers for existing and new vehicle routing challenges. Therefore it is designed to be modular, domain-driven, and with variety of tools and interfaces such as algorithm analysis, performance analysis, problem analysis, geo-distance calculation, map-based routing, route sheet, and so on, which target for real-world vehicle routing problem implementation. The library is built from scratch and based on several research works undertaken by the developers of this library.

Wednesday, September 4, 2013

A simple Python script for renaming filenames in the current folder

Suppose you have a set of image files which contains a certain text that you want to remove from the image filenames, below is the Python script to do it:
import os

for filename in os.listdir("."):
 if " (Small)" not in filename: continue
 os.rename(filename, filename.replace(" (Small)", ""))