annealers

package
v0.0.0-...-c864ae1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: BSD-2-Clause, BSD-3-Clause, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Id               = "Id"
	CurrentIteration = "CurrentIteration"
)
View Source
const MaximumIterations string = "MaximumIterations"

Variables

This section is empty.

Functions

func DefineSpecifications

func DefineSpecifications() *Specifications

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func (*Builder) Build

func (builder *Builder) Build() (annealing.Annealer, *cremerrors.CompositeError)

func (*Builder) ElapsedTimeTrackingAnnealer

func (builder *Builder) ElapsedTimeTrackingAnnealer() *Builder

func (*Builder) SimpleAnnealer

func (builder *Builder) SimpleAnnealer() *Builder

func (*Builder) WithDumbSolutionExplorer

func (builder *Builder) WithDumbSolutionExplorer() *Builder

func (*Builder) WithEventNotifier

func (builder *Builder) WithEventNotifier(delegate observer.EventNotifier) *Builder

func (*Builder) WithId

func (builder *Builder) WithId(title string) *Builder

func (*Builder) WithLogHandler

func (builder *Builder) WithLogHandler(logHandler logging.Logger) *Builder

func (*Builder) WithObservers

func (builder *Builder) WithObservers(observers ...observer.Observer) *Builder

func (*Builder) WithParameters

func (builder *Builder) WithParameters(params parameters.Map) *Builder

func (*Builder) WithSolutionExplorer

func (builder *Builder) WithSolutionExplorer(explorer explorer.Explorer) *Builder

type ElapsedTimeTrackingAnnealer

type ElapsedTimeTrackingAnnealer struct {
	SimpleAnnealer
	// contains filtered or unexported fields
}

func (*ElapsedTimeTrackingAnnealer) Anneal

func (annealer *ElapsedTimeTrackingAnnealer) Anneal()

func (*ElapsedTimeTrackingAnnealer) DeepClone

func (annealer *ElapsedTimeTrackingAnnealer) DeepClone() annealing.Annealer

func (*ElapsedTimeTrackingAnnealer) ElapsedTime

func (annealer *ElapsedTimeTrackingAnnealer) ElapsedTime() time.Duration

func (*ElapsedTimeTrackingAnnealer) Initialise

func (annealer *ElapsedTimeTrackingAnnealer) Initialise()

type NullAnnealer

func (*NullAnnealer) AddObserver

func (sa *NullAnnealer) AddObserver(observer observer.Observer) error

func (*NullAnnealer) AddObserverAsFirst

func (sa *NullAnnealer) AddObserverAsFirst(observer observer.Observer) error

func (*NullAnnealer) Anneal

func (sa *NullAnnealer) Anneal()

func (*NullAnnealer) DeepClone

func (sa *NullAnnealer) DeepClone() annealing.Annealer

func (*NullAnnealer) EventAttributes

func (sa *NullAnnealer) EventAttributes(eventType observer.EventType) attributes.Attributes

func (*NullAnnealer) Initialise

func (sa *NullAnnealer) Initialise()

func (*NullAnnealer) Model

func (sa *NullAnnealer) Model() model.Model

func (*NullAnnealer) Observers

func (sa *NullAnnealer) Observers() []observer.Observer

func (*NullAnnealer) ParameterErrors

func (sa *NullAnnealer) ParameterErrors() error

func (*NullAnnealer) SetId

func (sa *NullAnnealer) SetId(title string)

func (*NullAnnealer) SetParameters

func (sa *NullAnnealer) SetParameters(params parameters.Map) error

type Parameters

type Parameters struct {
	parameters.Parameters
}

func (*Parameters) Initialise

func (p *Parameters) Initialise() *Parameters

type SimpleAnnealer

type SimpleAnnealer struct {
	name.IdentifiableContainer

	explorer.ContainedExplorer
	model.ContainedModel

	loggers.ContainedLogger

	observer.ContainedEventNotifier
	// contains filtered or unexported fields
}

func (*SimpleAnnealer) AddObserver

func (sa *SimpleAnnealer) AddObserver(observer observer.Observer) error

func (*SimpleAnnealer) AddObserverAsFirst

func (sa *SimpleAnnealer) AddObserverAsFirst(observer observer.Observer) error

func (*SimpleAnnealer) Anneal

func (sa *SimpleAnnealer) Anneal()

func (*SimpleAnnealer) DeepClone

func (sa *SimpleAnnealer) DeepClone() annealing.Annealer

func (*SimpleAnnealer) EventAttributes

func (sa *SimpleAnnealer) EventAttributes(eventType observer.EventType) attributes.Attributes

func (*SimpleAnnealer) Initialise

func (sa *SimpleAnnealer) Initialise()

func (*SimpleAnnealer) Model

func (sa *SimpleAnnealer) Model() model.Model

func (*SimpleAnnealer) ObserveEvent

func (sa *SimpleAnnealer) ObserveEvent(event observer.Event)

func (*SimpleAnnealer) Observers

func (sa *SimpleAnnealer) Observers() []observer.Observer

func (*SimpleAnnealer) ParameterErrors

func (sa *SimpleAnnealer) ParameterErrors() error

func (*SimpleAnnealer) SetId

func (sa *SimpleAnnealer) SetId(title string)

func (*SimpleAnnealer) SetLogHandler

func (sa *SimpleAnnealer) SetLogHandler(logHandler logging.Logger)

func (*SimpleAnnealer) SetModel

func (sa *SimpleAnnealer) SetModel(model model.Model)

func (*SimpleAnnealer) SetParameters

func (sa *SimpleAnnealer) SetParameters(params parameters.Map) error

func (*SimpleAnnealer) SetSolutionExplorer

func (sa *SimpleAnnealer) SetSolutionExplorer(explorer explorer.Explorer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL