jijzepttools.blackbox_optimization.problem#

Classes#

Functions#

deprecated(func)

Decorator to mark functions as deprecated.

categorical_var(name, categories)

CategoricalVar(name, categories)

Legacy function for backward compatibility.

Module Contents#

deprecated(func)#

Decorator to mark functions as deprecated.

categorical_var(name, categories)#
class BlackboxProblem#
name: str#
description: str#
sense: jijmodeling.ProblemSense#
add_integer_var(name: str, lower_bound, upper_bound, shape: tuple | None = None, step: int = 1, description: str | None = None) jijmodeling.IntegerVar#
add_categorical_var(name: str, categories: list[str | int], description: str | None = None) jijmodeling.BinaryVar#
add_continuous_var(name: str, lower_bound: float, upper_bound: float, shape: tuple | None = None, description: str | None = None) jijmodeling.ContinuousVar#
add_binary_var(name: str, shape: tuple | None = None, description: str | None = None) jijmodeling.BinaryVar#
decision_variables_table() pandas.DataFrame#
random_candidates(num_samples: int = 1, interpreter: jijmodeling.Interpreter | None = None) list[dict]#
create_instance(instance_data: dict) ommx.v1.Instance#
encode_to_array(dataset: pandas.DataFrame, deci_vars: list[ommx.v1.DecisionVariable], objectives: list[str]) tuple[numpy.ndarray, numpy.ndarray]#
encode_dict_data(dict_deci_values: dict | pandas.Series, deci_vars: list[ommx.v1.DecisionVariable]) list#
decode_from_solution(solution: ommx.v1.Solution) dict#
add_IntegerVar(name: str, lower_bound, upper_bound, shape: tuple | None = None, step: int = 1, description: str | None = None) jijmodeling.IntegerVar#

Legacy method for backward compatibility.

add_CategoricalVar(name: str, categories: list[str | int], description: str | None = None) jijmodeling.BinaryVar#

Legacy method for backward compatibility.

add_ContinuousVar(name: str, lower_bound: float, upper_bound: float, shape: tuple | None = None, description: str | None = None) jijmodeling.ContinuousVar#

Legacy method for backward compatibility.

add_BinaryVar(name: str, shape: tuple | None = None, description: str | None = None) jijmodeling.BinaryVar#

Legacy method for backward compatibility.

CategoricalVar(name, categories)#

Legacy function for backward compatibility.