asgd


class PostProcessorASGD[source]#

Bases: PostProcessor

A concrete class that implements the PostProcessor interface.

postprocess(c, q_matrix, v_vector, lower_clamp=0.0, upper_clamp=1.0, num_iter=1, device='cpu')[source]#

Post processing using ASGD method.

Parameters:
  • c (torch.tensor) – The values for each

  • solver. (variable of the problem in the solution found by the) –

  • q_matrix (torch.tensor) – The Q matrix describing the BoxQP problem.

  • v_vector (torch.tensor) – The V vector describing the BoxQP problem.

  • lower_clamp (float, optional) – Lower bound of the box constraints. Defaults to 0.0.

  • upper_clamp (float, optional) – Upper bound of the box constraints. Defaults to 1.0.

  • num_iter (int, optional) – The number of iterations. Defaults to 1.

  • device (str, optional) – Defines which GPU (or the CPU) to use. Defaults to “cpu”.

Returns:

The values for each variable of the problem in the

solution found by the solver after post-processing.

Return type:

torch.tensor