optimizer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. This file is part of cc-energy-manager. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. This file is part of cc-energy-manager. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. This file is part of cc-energy-manager. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. This file is part of cc-energy-manager. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGssNgOptimizer

func NewGssNgOptimizer(config json.RawMessage) (*gssngOptimizer, error)

func NewGssOptimizer

func NewGssOptimizer(config json.RawMessage) (*gssOptimizer, error)

func NewTestOptimizer

func NewTestOptimizer(config json.RawMessage) (*testOptimizer, error)

Types

type Mode

type Mode int
const (
	Narrow Mode = iota
	BroadenUp
	BroadenDown
)

enum optimizing strategy

type Optimizer

type Optimizer interface {
	Start(float64) (float64, bool)
	Update(float64) float64
	GetBordersCfg() (float64, float64)
	GetBordersCur() (float64, float64)
	SetBorders(float64, float64)
}

func NewOptimizer

func NewOptimizer(rawConfig json.RawMessage) (Optimizer, error)

type ProbeMode

type ProbeMode int
const (
	ProbeLowerOuter ProbeMode = iota
	ProbeLowerInner
	ProbeUpperInner
	ProbeUpperOuter
	ProbeNone
)

enum optimizing strategy

Jump to

Keyboard shortcuts

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