OptimizeResponse
Object containing the optimization results and all of the metrics returned by the solver.
- titanq.OptimizeResponse.computation_id(self) UUID
The computation id is a Universal unique id that identify this computation inside the TitanQ platform.
Provide this id on any support request to the InfinityQ.
Returns
The computation id of this solve.
- titanq.OptimizeResponse.computation_metrics(self, key: str | None = None) Any
The computation metrics the solver returnes
Returns
All computation metrics if no key is given of the specific metrics with the associated key if one is provided.
Raises
- KeyError
The given key does not exist.
- titanq.OptimizeResponse.metrics(self, key: str | None = None) str | Dict[str, Any]
Deprecated since version 0.7.0: Use computation_metrics() or original_input_params() instead.
Returns
All metrics if no key is given. A specific metric with the associated key if one is provided.
Raises
- KeyError
The given key does not exist
- titanq.OptimizeResponse.original_input_params(self, key: str | None = None) Any
The original input params sent to the solver
Returns
All original params if no key is given. A specific param with the associated key if one is provided.
Raises
- KeyError
The given key does not exist