package adapt

// Config represents a configuration of the algorithm.
type Config struct {
	// The refinement rate of the algorithm. The parameter specifies the
	// fraction of the nodes queued for refinement to be taken from the queue at
	// each iteration.
	Rate float64 // ⊆ (0, 1]

	// The minimal level of interpolation. The nodes that belong to lower levels
	// are unconditionally included in the surrogate.
	MinLevel uint

	// The maximal level of interpolation. The nodes that belong to this level
	// are never refined.
	MaxLevel uint

	// A flag to enable grid balancing. If it is set to true, additional nodes
	// are added at each iteration to balance the underlying grid. Note that
	// Target.Score should not reject any nodes in this case.
	Balance bool

	// The number of concurrent workers. The evaluation of the target function
	// and the surrogate itself is distributed among this many goroutines.
	Workers uint
}

// NewConfig returns a new configuration with default values.
func NewConfig() *Config {
	return &Config{
		Rate:     1,
		MinLevel: 1,
		MaxLevel: 9,
	}
}

package adapt

// Config represents a configuration of the algorithm.
type Config struct {
	// The refinement rate of the algorithm. The parameter specifies the
	// fraction of the nodes queued for refinement to be taken from the queue at
	// each iteration.
	Rate float64 // ⊆ (0, 1]

	// The minimum level of interpolation. The nodes that belong to lower levels
	// are unconditionally included in the surrogate.
	MinLevel uint

	// The maximum level of interpolation. The nodes that belong to this level
	// are never refined.
	MaxLevel uint

	// A flag to enable grid balancing. If it is set to true, additional nodes
	// are added at each iteration to balance the underlying grid. Note that
	// Target.Score should not reject any nodes in this case.
	Balance bool

	// The number of concurrent workers. The evaluation of the target function
	// and the surrogate itself is distributed among this many goroutines.
	Workers uint
}

// NewConfig returns a new configuration with default values.
func NewConfig() *Config {
	return &Config{
		Rate:     1,
		MinLevel: 1,
		MaxLevel: 9,
	}
}

Adjust the description of Config
Adjust the description of Config
