set_printoptionsΒΆ

set_printoptions(
*,
full_print: bool | None = None,
precision: int | None = None,
poly_threshold: int | None = None,
poly_latex_threshold: int | None = None,
array_threshold: int | None = None,
array_latex_threshold: int | None = None,
constraintlist_threshold: int | None = None,
constraintlist_latex_threshold: int | None = None,
) NoneΒΆ

Set print options for Amplify objects (Poly, PolyArray, ConstraintList).

This function sets the global print options for Amplify objects. Options take effect immediately and persist for the lifetime of the process. Only the specified arguments are updated; unspecified arguments retain their current values.

Parameters:
  • full_print (bool | None) – If True, all items are printed regardless of threshold values. Defaults to None.

  • precision (int | None) – Number of significant digits for floating-point display. Applies to Poly coefficients, PolyArray elements, and Constraint right-hand sides and weights. Defaults to None.

  • poly_threshold (int | None) – Number of terms above which Poly str/repr output is truncated. Defaults to None.

  • poly_latex_threshold (int | None) – Number of terms above which Poly LaTeX output is truncated. Defaults to None.

  • array_threshold (int | None) – Number of elements above which PolyArray str/repr output is truncated. Values above INT_MAX are treated as INT_MAX. Defaults to None.

  • array_latex_threshold (int | None) – Number of elements above which PolyArray LaTeX output is truncated. Values above INT_MAX are treated as INT_MAX. Defaults to None.

  • constraintlist_threshold (int | None) – Number of constraints above which ConstraintList str/repr output is truncated. Defaults to None.

  • constraintlist_latex_threshold (int | None) – Number of constraints above which ConstraintList LaTeX output is truncated. Defaults to None.