modumb

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Objectives = []string{
	"Objective_0",
	"Objective_1",
	"Objective_2",
}

Functions

This section is empty.

Types

type Model

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) 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) ObserveAction

func (m *Model) ObserveAction(action action.ManagementAction)

func (*Model) ObserveActionInitialising

func (m *Model) ObserveActionInitialising(action action.ManagementAction)

func (*Model) ObserveDecisionVariable

func (m *Model) ObserveDecisionVariable(variable variable.DecisionVariable)

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 baseParameters.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) WithId

func (m *Model) WithId(id string) *Model

func (*Model) WithName

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

func (*Model) WithParameters

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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