QuadraticProgram.prettyprint¶
- QuadraticProgram.prettyprint(wrap=80)[source]¶
Returns a pretty printed string of this problem.
- Parameters:
wrap (
int
) – The text width to wrap the output strings. It is disabled by setting 0. Note that some strings might exceed this value, for example, a long variable name won’t be wrapped. The default value is 80.- Return type:
- Returns:
A pretty printed string representing the problem.
- Raises:
QiskitOptimizationError – if there is a non-printable name.