dumb

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitialObjectiveValue = "InitialObjectiveValue"
	MinimumObjectiveValue = "MinimumObjectiveValue"
	MaximumObjectiveValue = "MaximumObjectiveValue"
)

Variables

This section is empty.

Functions

func ParameterSpecifications

func ParameterSpecifications() *Specifications

Types

type Model

type Model struct {
	name.NameContainer
	name.IdentifiableContainer
	rand.RandContainer
	// contains filtered or unexported fields
}

func NewModel

func NewModel() *Model

func (*Model) AcceptChange

func (m *Model) AcceptChange()

func (*Model) ActiveManagementActions

func (m *Model) ActiveManagementActions() []action.ManagementAction

func (*Model) ChangeIsValid

func (m *Model) ChangeIsValid() (bool, *errors.CompositeError)

func (*Model) DecisionVariable

func (m *Model) DecisionVariable(name string) variable.DecisionVariable

func (*Model) DecisionVariableChange

func (m *Model) DecisionVariableChange(decisionVariableName string) float64

func (*Model) DeepClone

func (m *Model) DeepClone() model.Model

func (*Model) DoRandomChange

func (m *Model) DoRandomChange()

func (*Model) Initialise

func (m *Model) Initialise(initialisationType model.InitialisationType)

func (*Model) IsEquivalentTo

func (m *Model) IsEquivalentTo(otherModel model.Model) bool

func (*Model) ManagementActions

func (m *Model) ManagementActions() []action.ManagementAction

func (*Model) NameMappedVariables

func (m *Model) NameMappedVariables() *variable.DecisionVariableMap

func (*Model) OffersDecisionVariable

func (m *Model) OffersDecisionVariable(name string) bool

func (*Model) ParameterErrors

func (m *Model) ParameterErrors() error

func (*Model) PlanningUnits

func (m *Model) PlanningUnits() planningunit.Ids

func (*Model) Randomize

func (m *Model) Randomize()

func (*Model) RevertChange

func (m *Model) RevertChange()

func (*Model) SetDecisionVariable

func (m *Model) SetDecisionVariable(name string, value float64)

func (*Model) SetManagementAction

func (m *Model) SetManagementAction(index int, value bool)

func (*Model) SetManagementActionUnobserved

func (m *Model) SetManagementActionUnobserved(index int, value bool)

func (*Model) SetParameters

func (m *Model) SetParameters(params parameters.Map) error

func (*Model) SynchroniseTo

func (m *Model) SynchroniseTo(otherModel model.Model)

func (*Model) TearDown

func (m *Model) TearDown()

func (*Model) TryRandomChange

func (m *Model) TryRandomChange()

func (*Model) UndoChange

func (m *Model) UndoChange()

func (*Model) WithName

func (m *Model) WithName(name string) *Model

func (*Model) WithParameters

func (m *Model) WithParameters(params parameters.Map) *Model

type Parameters

type Parameters struct {
	parameters.Parameters
}

func (*Parameters) Initialise

func (p *Parameters) Initialise() *Parameters

Jump to

Keyboard shortcuts

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