optimizer

package
v0.0.0-...-80c8c53 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotAssignToBucket = errors.New("cannot assign items to buckets")

ErrCannotAssignToBucket should be returned if there is no possibility to assign items to buckets using the given algorithm.

Functions

This section is empty.

Types

type Optimizer

type Optimizer interface {
	Optimize(context.Context, *data.Data) (*Result, error)
}

Optimizer allows for optimizing problem using given data.Data.

type Result

type Result struct {
	RRHCount                int
	RRHEnable               []bool
	VehiclesToRRHAssignment []int
}

Result represents result of optimization. Should be returned by Optimizer.

Jump to

Keyboard shortcuts

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