RPP Generator Parameters

Kamil Veømiøovský, November, 2002

SICStus Prolog file parameters.pl follows below. It can be also downloaded from here.

% -----------------------------------------------------------------------------
% RANDOM PLACEMENT PROBLEM GENERATOR PARAMETERS 
% -----------------------------------------------------------------------------

% number of objects
number_of_objects( 200 ).

% placement area size
% coordinates will be in 0..area_width - 1, 0..area_height - 1
area_width( 35 ).
area_height( 14 ).

% allowed object sizes and their probabilities (sum should be 1.0)
object_sizes(
   sizes( [[2,1],[3,1],[4,1],[6,1]] ),
   probabilities( [0.8042,0.1663,0.0252,0.0043] )
).

% lower bounds of objects' Y coordinates (as percentages of the height of the
% placement area)
lower_bounds(
   bounds( [0,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.91] ),
   probabilities( [0.31,0.08,0.044,0.07,0.2,0.103,0.06,0.02,0.113] )
).

% generated file name
generated_file_name( 'gen.pl' ).