Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Custom ¶
type Custom struct { Path string Optimizer optimizer.PerformanceSubjectOptimizer }
Custom is an Executor that allows for running optimization using the custom, self-written optimizer.
func (*Custom) CacheEligible ¶
func (*Custom) Execute ¶
Execute runs optimization using custom optimizer and waits for results or context cancellation.
func (*Custom) Identifier ¶
Identifier returns the name of the executor, which in this case is also the name of the underlying optimizer.
type Executor ¶
type Executor interface { behavior.Identifiable behavior.Cacheable Execute(ctx context.Context) (int, error) }
func NewCplex ¶
NewCplex returns Executor which is able to run cplex optimization process and obtain results from it.
func NewCplexWithThreadPool ¶
NewCplexWithThreadPool returns Executor which is able to run cplex optimization process and obtain results from it. It limits the thread count of the CPLEX process, so it is convenient in cases when several CPLEX processes run on one machine to avoid excessive context switching.
type GroupExecutor ¶
type GroupExecutor struct {
Executors []Executor
}