sanity

categories(instance)

Checks that the preferences and categories are consistent.

Parameters

instance (preflibtools.instances.preflibinstance.CategoricalInstance) – The instance to draw.

matching(instance)

Checks that the matching preferences are consistent.

Parameters

instance (preflibtools.instances.preflibinstance.MatchingInstance) – The instance to draw.

metadata(instance)

Checks that the basic metadata are in line with the content of the instance.

Parameters

instance (preflibtools.instances.preflibinstance.PrefLibInstance) – The instance to test.

my_assert(condition, error, error_list)
orders(instance)

Checks that the orders are consistent.

Parameters

instance (preflibtools.instances.preflibinstance.OrdinalInstance) – The instance to draw.