lbfgs#

class PostProcessorLBFGS[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)[source]#

Post processing using LBFGS method.

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

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

  • q_matrix (torch.tensor) – Coefficients of the quadratic terms.

  • v_vector (torch.tensor) – Coefficients of the linear terms.

  • 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.

Returns:

The values for each variable of the problem in the

solution found by the solver after post-processing.

Return type:

torch.tensor