BinPacker (bin_packer v0.1.0) View Source
Link to this section Summary
Link to this section Types
Specs
args() :: any()
Specs
ball_id() :: id()
Specs
ball_ids() :: [ball_id()]
Specs
bin_id() :: id()
Specs
bin_ids() :: [bin_id()]
Specs
constraint_opts() :: [ma()]
Specs
Specs
cost() :: number()
Specs
id() :: any()
Specs
Specs
Specs
Specs
Specs
Specs
proposition() :: BinPacker.MoveProposition.t() | BinPacker.SwapProposition.t()
Specs
proposition_type() :: BinPacker.MoveProposition | BinPacker.SwapProposition
Specs
proposition_types() :: [proposition_types()]
Specs
propositions() :: [propositions()]
Specs
search_opts() :: [ neighbourhoods: neighbourhood_opts(), constraints: constraint_opts() ]
Specs
state() :: any()
Specs
t() :: %BinPacker{ assignments: BinPacker.Assignments.t(), constraints: constraints(), neighbourhoods: neighbourhoods(), objectives: Objectives.t() }
Specs
weight() :: number()
Link to this section Functions
Specs
add_ball(t(), BinPacker.Ball.t()) :: t()
Specs
add_balls(t(), [BinPacker.Ball.t()]) :: t()
Specs
add_bin(t(), BinPacker.Bin.t()) :: t()
Specs
add_bins(t(), [BinPacker.Bin.t()]) :: t()
Specs
new([BinPacker.Bin.t()], [BinPacker.Ball.t()], objective_opts(), search_opts()) :: t()