boxqp_metadata#
- class BoxQPMetadata(problem: ProblemType)[source]#
Bases:
ProblemMetadata
BoxQP Problem-specific Metadata class.
The problem-specific metadata class inherited from Problem Metadata parent class for the BoxQP problem. This takes Box QP problem result data and generates plotting data.
BoxQP Metadata class object constructor.
The constructor defines variables that are specific to the BoxQP problem and are used to generate plotting data.
- Parameters:
problem (ProblemType) – A problem type.
- generate_plot_data(metric_func: callable) DataFrame [source]#
Calculate the time to solution vs problem size for a particular gap and quantile.
- Parameters:
metric_func (callable) – A callback function that is used when calculating
machine_energy (the metrics either to determine the machine_time or the) –
:param : :param which are used when computing the TTS or ETS: :param respectively.:
- Returns:
The time to solution for each problem size.
- Return type:
(pd.Series)