opt.single_objective.glob.min_function_one_variable_problem package

Submodules

opt.single_objective.glob.min_function_one_variable_problem.min_function_one_variable_problem module

class opt.single_objective.glob.min_function_one_variable_problem.min_function_one_variable_problem.MinFunctionOneVariableProblem(expression: str, domain_low: float, domain_high: float)

Bases: Problem

copy()

Copy the current target problem

Returns:

new Problem instance with the same properties

Return type:

Problem

property domain_high: float
property domain_low: float
property expression: str
classmethod from_input_file(input_file_path: str, input_format: str)

Additional constructor. Create new MaxFunctionOneVariableMaxProblem instance when input file and input format are specified

Parameters:
  • input_file_path (str) – path of the input file with problem data

  • input_format (str) – format of the input

property number_of_intervals: int
string_rep(delimiter: str, indentation: int = 0, indentation_symbol: str = '', group_start: str = '{', group_end: str = '}') str

String representation of the target problem instance

Parameters:
  • delimiter (str) – delimiter between fields

  • indentation (int, optional, default value 0) – level of indentation

  • indentation_symbol (str, optional, default value '') – indentation symbol

  • group_start (str, optional, default value '{') – group start string

  • group_end (str, optional, default value '}') – group end string

Returns:

string representation of instance that controls output

Return type:

str

class opt.single_objective.glob.min_function_one_variable_problem.min_function_one_variable_problem.MinFunctionOneVariableProblemElements(expression, domain_low, domain_high)

Bases: tuple

domain_high: float

Alias for field number 2

domain_low: float

Alias for field number 1

expression: str

Alias for field number 0

Module contents