Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RuntimeRand *rand.Rand = rand.New(&randomSource{})
Functions ¶
This section is empty.
Types ¶
type ALNS ¶
type ALNS struct {
Logger *slog.Logger
Rnd *rand.Rand
CollectObjectives bool
Listener Listener
DestroyOperators []Operator
RepairOperators []Operator
}
func NewDefaultAlns ¶ added in v0.3.0
func (*ALNS) Iterate ¶
func (a *ALNS) Iterate( initSol State, selectOp OperatorSelectionScheme, accept AcceptanceCriterion, stop StoppingCriterion, ) (*Result, error)
def iterate(initial_solution, select, accept, stop)
type AcceptanceCriterion ¶
type ObjectiveRecord ¶ added in v0.3.0
type OperatorCounts ¶ added in v0.3.0
type OperatorCounts [4]uint // see Outcome
func (OperatorCounts) String ¶ added in v0.3.0
func (o OperatorCounts) String() string
type OperatorSelectionScheme ¶
type Result ¶
type Result struct {
BestState State
Statistics Statistics
}
type Statistics ¶
type Statistics struct {
IterationCount uint // the number of iterations
TotalRuntime time.Duration // the total runtime
Objectives []ObjectiveRecord // previous objective values, tracking progress
DestroyOperatorCounts []OperatorCounts // the destroy operator counts
RepairOperatorCounts []OperatorCounts // the repair operator counts
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.