encoding

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnSatifiable = errors.New("unsat network")

Functions

This section is empty.

Types

type CNF

type CNF [][]int

type DirectEncoding

type DirectEncoding struct {
	Pen *models.PeriodicEventNetwork
	// contains filtered or unexported fields
}

func (*DirectEncoding) Solve

func (e *DirectEncoding) Solve(g *gini.Gini) (models.Schedule, error)

func (*DirectEncoding) SolveAll added in v0.1.7

func (e *DirectEncoding) SolveAll() <-chan models.Schedule

func (*DirectEncoding) Stats added in v0.1.7

func (e *DirectEncoding) Stats() *Statistics

type Encoding

type Encoding interface {
	Solve(g *gini.Gini) (models.Schedule, error)
	SolveAll() <-chan models.Schedule
	Stats() *Statistics
}

type OrderEncoding

type OrderEncoding struct {
	Pen *models.PeriodicEventNetwork
	// contains filtered or unexported fields
}

func (*OrderEncoding) Solve

func (e *OrderEncoding) Solve(g *gini.Gini) (models.Schedule, error)

func (*OrderEncoding) SolveAll

func (e *OrderEncoding) SolveAll() <-chan models.Schedule

func (*OrderEncoding) Stats added in v0.1.7

func (e *OrderEncoding) Stats() *Statistics

type Rect

type Rect [4]int

type Statistics added in v0.1.7

type Statistics struct {
	MaxVar    uint64
	Clause    uint64
	SolveTime time.Duration
}

func (*Statistics) String added in v0.1.7

func (s *Statistics) String() string

Jump to

Keyboard shortcuts

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