yamlparser

package
v0.0.0-...-efdb40b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeComparator

func MakeComparator(settings DataComparators) data.PairWithArgs

Types

type AbqSetting

type AbqSetting struct {
	Path          string
	Inputfile     string
	Keywords      []string
	InitialParams []float64 `initial_parameters`
}

type CoarseSearch

type CoarseSearch struct {
	Seed       []string
	Limits     []string
	Scales     []int
	Refinement []float64
}

type CoarseSearchSettings

type CoarseSearchSettings struct {
	Seeds      []int
	Bounds     []float64
	NPts       int
	Refinement []float64
}

type DataComparators

type DataComparators struct {
	Type           string
	Referencefile  string //
	Currentfile    string //
	Commonargsfile string
	Keywords       []string
}

Note: struct fields must be public in order for unmarshal to correctly populate the data.

type SolverSet

type SolverSet struct {
	Method       string
	Threshold    float64
	Evaluations  int
	CoarseSearch CoarseSearch `coarsesearch`
}

type YamlData

type YamlData struct {
	Comparators    []DataComparators `DataComparators`
	AbqSettings    AbqSetting        `Abaqus_settings`
	SolverSettings SolverSet         `Solver_settings`
	WorkDir        string            `Work_directory`
}

func Parse

func Parse(yamlData []byte) YamlData

func (YamlData) NewCoarseSearch

func (yamlData YamlData) NewCoarseSearch() CoarseSearchSettings

func (YamlData) NewComparator

func (yamlData YamlData) NewComparator() []data.PairWithArgs

func (YamlData) NewCostFunction

func (yamlData YamlData) NewCostFunction() appwrapper.AppWrapper

func (YamlData) NewOptimizerMethod

func (data YamlData) NewOptimizerMethod() optimize.Method

func (YamlData) NewOptimizerSettings

func (data YamlData) NewOptimizerSettings() optimize.Settings

Jump to

Keyboard shortcuts

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