Example implementation of perlocation problems.