opt.single_objective.comb.ones_count_min_problem package
Submodules
opt.single_objective.comb.ones_count_min_problem.ones_count_min_problem module
- class opt.single_objective.comb.ones_count_min_problem.ones_count_min_problem.OnesCountMinProblem(dim: int)
Bases:
Problem- copy()
Copy the OnesCountMinProblem problem
- Returns:
new OnesCountMinProblem instance with the same properties
- Return type:
- property dimension: int
Property getter for dimension of the ones count min problem.
- Returns:
dimension of the target problem instance
- Return type:
- classmethod from_dimension(dimension: int)
Additional constructor. Create new OnesCountMinProblem instance when dimension is specified
- Parameters:
dimension (int) – dimension of the problem
- classmethod from_input_file(input_file_path: str, input_format: str)
Additional constructor. Create new OnesCountMinProblem instance when input file and input format are specified
- string_rep(delimiter: str, indentation: int = 0, indentation_symbol: str = '', group_start: str = '{', group_end: str = '}') str
String representation of the MaxOneProblem 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: