179 std::cout << std::endl <<
"Duality Gap: " <<
resids->GetDualityGap() << std::endl;
181 std::cout <<
" alpha = " << alpha << std::endl;
183 std::cout <<
" *** Iteration " << i <<
" *** " << std::endl;
184 std::cout <<
" mu = " << mu <<
" relative residual norm = "
190 switch (status_code) {
192 std::cout << std::endl <<
" *** SUCCESSFUL TERMINATION ***" << std::endl;
195 std::cout << std::endl <<
" *** MAXIMUM ITERATIONS REACHED *** " << std::endl;
198 std::cout << std::endl <<
" *** TERMINATION: PROBABLY INFEASIBLE *** " << std::endl;
201 std::cout << std::endl <<
" *** TERMINATION: STATUS UNKNOWN *** " << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
@ kSUCCESSFUL_TERMINATION
Derived class of TQpSolverBase implementing the original Mehrotra predictor-corrector algorithm.
void DefMonitor(TQpDataBase *data, TQpVar *vars, TQpResidual *resids, Double_t alpha, Double_t sigma, Int_t i, Double_t mu, Int_t status_code, Int_t level) override
Print information about the optimization process and monitor the convergence status of thye algorithm...
TMehrotraSolver()
Default constructor.
TMehrotraSolver & operator=(const TMehrotraSolver &source)
Assignment operator.
~TMehrotraSolver() override
Deconstructor.
Int_t Solve(TQpDataBase *prob, TQpVar *iterate, TQpResidual *resid) override
Solve the quadratic programming problem as formulated through prob, store the final solution in itera...
Data for the general QP formulation.
virtual void Solve(TQpDataBase *prob, TQpVar *vars, TQpResidual *resids, TQpVar *step)
Solves the system for a given set of residuals.
virtual void Factor(TQpDataBase *prob, TQpVar *vars)
Sets up the matrix for the main linear system in "augmented system" form.
default general problem formulation:
virtual TQpLinSolverBase * MakeLinSys(const TQpDataBase *data)=0
virtual TQpVar * MakeVariables(const TQpDataBase *data)=0
The Residuals class calculates and stores the quantities that appear on the right-hand side of the li...
The Solver class contains methods for monitoring and checking the convergence status of the algorithm...
virtual void Start(TQpProbBase *formulation, TQpVar *iterate, TQpDataBase *prob, TQpResidual *resid, TQpVar *step)
Implements a default starting-point heuristic.
virtual void DoMonitor(TQpDataBase *data, TQpVar *vars, TQpResidual *resids, Double_t alpha, Double_t sigma, Int_t i, Double_t mu, Int_t stop_code, Int_t level)
Monitor progress / convergence aat each interior-point iteration.
virtual Int_t DoStatus(TQpDataBase *data, TQpVar *vars, TQpResidual *resids, Int_t i, Double_t mu, Int_t level)
Tests for termination.
virtual Double_t FinalStepLength(TQpVar *iterate, TQpVar *step)
Implements a version of Mehrotra starting point heuristic, modified to ensure identical steps in the ...
TQpSolverBase & operator=(const TQpSolverBase &source)
Assignment operator.
Class containing the variables for the general QP formulation.
virtual void Negate()
Perform a "negate" operation on all data vectors : x = -x.
int iterate(rng_state_t *X)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.