QpFailure

it.grypho.scala.leonardo.optimize.QpFailure
enum QpFailure

Why qpSolve gave no answer (F_0052 Decision A: a reason at the Scala level, which the REPL appends as a note). An MPC reacts differently to each — relax the targets, fix the model, hold the last input — which is why Left(this) alone would not do.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class FeasibleStart(why: LpFailure)

A semidefinite H starts from an exact lpSolve feasible point (F_0074), and that LP declined for a reason of its own (F_0106) — typically its caps, which are far below qp's: MaxLpVariables, MaxLpConstraints and MaxLpBits. Infeasible is never carried here; it is reported as Infeasible, since the LP proves it.

A semidefinite H starts from an exact lpSolve feasible point (F_0074), and that LP declined for a reason of its own (F_0106) — typically its caps, which are far below qp's: MaxLpVariables, MaxLpConstraints and MaxLpBits. Infeasible is never carried here; it is reported as Infeasible, since the LP proves it.

Attributes

case Infeasible extends QpFailure

The constraints admit no point.

The constraints admit no point.

Attributes

final case class InvalidInput(detail: String)

An operand has the wrong shape or is not numeric; the detail says which.

An operand has the wrong shape or is not numeric; the detail says which.

Attributes

final case class MaxIterations(limit: Int)

No optimum within the iteration cap.

No optimum within the iteration cap.

Attributes

case NotConvex extends QpFailure

H has a negative eigenvalue: the problem is not convex.

H has a negative eigenvalue: the problem is not convex.

Attributes

H is positive semidefinite but singular, so the Goldfarb–Idnani method does not apply (F_0053 Decision B). Since F_0074 qpSolve no longer answers with it: it is the signal that hands the problem to the primal active-set method instead. Never regularised — H + εI would answer a different problem.

H is positive semidefinite but singular, so the Goldfarb–Idnani method does not apply (F_0053 Decision B). Since F_0074 qpSolve no longer answers with it: it is the signal that hands the problem to the primal active-set method instead. Never regularised — H + εI would answer a different problem.

Attributes

case Unbounded extends QpFailure

The objective falls without bound: a direction of zero curvature (a null direction of a semidefinite H) along which the cost decreases and no constraint blocks (F_0074).

The objective falls without bound: a direction of zero curvature (a null direction of a semidefinite H) along which the cost decreases and no constraint blocks (F_0074).

Attributes

final case class Uncertified(residual: Double)

The final point failed the KKT certificate (X-02); residual is the relative residual.

The final point failed the KKT certificate (X-02); residual is the relative residual.

Attributes