Instance Generators

Listing

The list of instance generators is given below.

Set Cover

class ecole.instance.SetCoverGenerator(n_rows: int = 500, n_cols: int = 1000, density: float = 0.05, max_coef: int = 100)[source]
seed(seed: int)[source]

Seeds SetCoverGenerator.

This method sets the random seed of the SetCoverGenerator.

Parameters

seed – The seed in which to set the random number generator with.

Combinatorial Auction

class ecole.instance.CombinatorialAuctionGenerator(n_items: int = 100, n_bids: int = 500, min_value: int = 1, max_value: int = 100, value_deviation: float = 0.5, add_item_prob: float = 0.9, max_n_sub_bids: int = 5, additivity: float = 0.2, budget_factor: float = 1.5, resale_factor: float = 0.5, integers: float = False)[source]
seed(seed: int)[source]

Seeds SetCoverGenerator.

This method sets the random seed of the SetCoverGenerator.

Parameters

seed – The seed in which to set the random number generator with.

Capacitated Facility Location

class ecole.instance.CapacitatedFacilityLocationGenerator(n_customers: int = 100, n_facilities: int = 100, ratio: float = 5.0)[source]
seed(seed: int)[source]

Seeds CapacitatedFacilityLocationGenerator.

This method sets the random seed of the CapacitatedFacilityLocationGenerator.

Parameters

seed – The seed in which to set the random number generator with.

Independent Set

class ecole.instance.IndependentSetGenerator(n_nodes: int = 100, edge_probability: float = 0.25, affinity: int = 5, graph_type: str = 'barabasi_albert')[source]
seed(seed: int)[source]

Seeds IndependentSetGenerator.

This method sets the random seed of the IndependentSetGenerator.

Parameters

seed – The seed in which to set the random number generator with.