Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Optimizer ¶
type Optimizer struct {
// contains filtered or unexported fields
}
func NewOptimizerFromSpec ¶
func NewOptimizerFromSpec(spec *config.OptimizerSpec) *Optimizer
Create optimizer from spec
func (*Optimizer) SolutionTimeMsec ¶
type ServerEntriesOrder ¶
type ServerEntriesOrder func(a, b *serverEntry) int
sorting function for server entries
type Solver ¶
type Solver struct {
// contains filtered or unexported fields
}
Solver of allocation assignment problem
func NewSolver ¶
func NewSolver(optimizerSpec *config.OptimizerSpec) *Solver
func (*Solver) AllocationDiff ¶
func (s *Solver) AllocationDiff() map[string]*core.AllocationDiff
func (*Solver) SolveGreedy ¶
func (s *Solver) SolveGreedy()
Find optimal allocations using greedy algorithm, assuming limited accelerator capacity
func (*Solver) SolveUnlimited ¶
func (s *Solver) SolveUnlimited()
Find optimal allocations assuming unlimited accelerator capacity (separable objective function: best allocation for each server)
Click to show internal directories.
Click to hide internal directories.