138#define RECOMPUTE_GTZ 0
221 const bool UsAvSt =
false )
override;
263 default:
throw(
NDOException(
"SetPar( HpNum ): unknown parameter" ) );
296 void SetMPLog( std::ostream *outs = 0 ,
const char lvl = 0 )
override
298 if( ( MPLog = outs ) )
331 return( ( ( tt == tCurr ? tt : ( tt * tt ) / tCurr ) / 2 ) *
ReadzNorm() );
364 const bool IncldCnst =
false )
override;
447 throw(
NDOException(
"QPPenaltyMP::ReadLowerBound: wFi == 0" ) );
449 if( ( wFi > 1 ) || ( ! RHSp ) )
464 return( BMinQuad::EpsilonD() );
466 return( EpsD * (
BDim ?
BDim : 1 ) );
568 void Computedir(
bool Fulld );
572 Index CheckBCopy(
void );
614 void CalculateZ(
LMRow z );
635 const bool add )
override;
644#if( ( G_IMPLM > 0 ) && ( G_IMPLM < 3 ) )
646 void GetNewGTRow(
cIndex i );
648 void SetGTRow(
cIndex i );
650 void PutGTRow(
cIndex i );
673 void CompleteZ(
bool Fullz =
true );
684 void ComputeZBase(
void );
695 void CheckBounds(
void );
717 void CheckSG(
void );
721 void CheckGT(
void );
725 void MemDealloc(
void );
805 #if( ( G_IMPLM > 0 ) && ( G_IMPLM < 3 ) )
Definition BMinQuad.h:212
HpNum ReadSigma(const bool IncldCnst=true)
Definition BMinQuad.h:697
void SetMaxVarAdd(cIndex MVA=1)
Definition BMinQuad.h:267
void SetMaxVarRmv(cIndex MVR=1)
Definition BMinQuad.h:279
LMRow LowerBounds(void)
Definition BMinQuad.h:398
void SetEpsilonD(HpNum NeweD=0)
cHpRow ReadAlfa(void)
Definition BMinQuad.h:373
HpNum ReadzNorm(void)
Definition BMinQuad.h:681
bool IsThere(cIndex n)
Returns true if there is an item with name 'n'.
Definition MinQuad.h:457
Index MaxItemN(void)
Definition MinQuad.h:481
cHpNum ReadLB(void)
returns the current value of the Lower Bound
Definition MinQuad.h:587
bool IsASubG(cIndex n)
Returns true if the item with "name" 'n' is a subgradient.
Definition MinQuad.h:462
void SetPricing(cHpNum Brk=Inf< HpNum >())
Definition MinQuad.h:361
Index ActCNum
Definition MinQuad.h:1094
virtual HpNum ReadSigma(const bool IncldCnst=true)
Definition MinQuad.h:776
Index ActBDim
Number of items currently in the bundle.
Definition MinQuad.h:1093
void SetMaxTime(cHpNum NewMaxTime)
Definition MinQuad.h:379
void SetEpsilonR(HpNum NeweR=0)
Index BDim
n. of items in Base
Definition MinQuad.h:1102
Definition FiOracle.h:231
Definition MPSolver.h:121
MPStatus
Definition MPSolver.h:151
Definition QPPnltMP.h:173
HpNum ReadDt(cHpNum tt=1) override
Definition QPPnltMP.h:329
HpNum ReadFiBLambda(cIndex wFi=Inf< Index >()) override
Index NumBxdVars(void) override
Definition QPPnltMP.h:421
void RmvVars(cIndex_Set whch=0, Index hwmny=0) override
void MakeLambda1(cHpRow Lmbd, HpRow Lmbd1, cHpNum Tau) override
void SensitAnals(HpNum &lp, HpNum &cp) override
bool ChangesMPSol(void) override
bool IsSubG(cIndex i) override
Definition QPPnltMP.h:408
void AddVars(cIndex NNwVrs) override
void SetMaxVarAdd(cIndex MVA=1)
Definition BMinQuad.h:267
void SetMaxVarRmv(cIndex MVR=1)
Definition BMinQuad.h:279
Index WComponent(cIndex i) override
Definition QPPnltMP.h:401
cLMRow Readd(bool Fulld=false) override
void GiTLB(HpRow gtlb, cLMRow l, cIndex_Set lB, cIndex lBd, const bool add) override
Index BSize(cIndex wFi=Inf< Index >()) override
returns the current number of items (of either type) in the bundle.
Definition QPPnltMP.h:386
void RmvActvSt(cIndex_Set Rmvd, cIndex RmDm, cIndex_Set AVrs) override
Index BCSize(cIndex wFi=Inf< Index >()) override
returns the current number of constraints in the bundle.
Definition QPPnltMP.h:390
HpNum ReadLowerBound(cIndex wFi=Inf< Index >()) override
Definition QPPnltMP.h:445
void ChangeCurrPoint(cLMRow DLambda, cHpRow DFi) override
void ChgSubG(cIndex strt, Index stp, cIndex wFi) override
void SetPar(const int wp, cHpNum value) override
Definition QPPnltMP.h:250
HpNum ReadSigma(cIndex wFi=Inf< Index >()) override
Definition QPPnltMP.h:336
LMNum GiTLB(cIndex h, cLMRow l, cIndex_Set lB, cIndex lBd) override
void SetActvSt(cIndex_Set AVrs=0, cIndex AVDm=0) override
cSgRow GiTilde(cIndex i) override
SgRow GetItem(cIndex wFi=Inf< Index >()) override
void RmvItem(cIndex i) override
void RmvItems(void) override
void Sett(cHpNum tt=1) override
Definition QPPnltMP.h:246
void SetItem(cIndex Nm=Inf< Index >()) override
void CalculateZ(LMRow z) override
void CheckIdentical(const bool Chk=true) override
Definition QPPnltMP.h:278
bool IsNN(cIndex i) override
Definition QPPnltMP.h:432
void SetItemBse(cIndex_Set SGBse=0, cIndex SGBDm=0) override
void ComputeRHSxd(void)
just the destructor
void ChgAlfa(cHpRow NewAlfa, cIndex wFi) override
Index NumNNVars(void) override
Definition QPPnltMP.h:417
MPStatus SolveMP(void) override
cHpRow ReadLinErr(void) override
Definition QPPnltMP.h:441
void SetDim(cIndex MxBSz=0, FiOracle *Oracle=0, const bool UsAvSt=false) override
HpNum ReadDStart(cHpNum tt=1) override
Definition QPPnltMP.h:347
Index CheckSubG(cHpNum DFi, cHpNum Tau, HpNum &Ai, HpNum &ScPri) override
HpNum ReadGid(cIndex Nm=Inf< Index >()) override
HpNum EpsilonD(void) override
Definition QPPnltMP.h:461
void ChgAlfa(cHpRow DeltaAlfa) override
HpNum ReadLBMult(cIndex wFi=Inf< Index >()) override
void GiTG(cIndex i, QuRow Qi, cIndex iMax) override
void SetLowerBound(cHpNum LwBnd=- Inf< HpNum >(), cIndex wFi=Inf< Index >()) override
void ChangeCurrPoint(cHpNum Tau, cHpRow DFi) override
void AddActvSt(cIndex_Set Addd, cIndex AdDm, cIndex_Set AVrs) override
void SubstItem(cIndex Nm) override
cHpRow ReadMult(cIndex_Set &I, Index &D, cIndex wFi=Inf< Index >(), const bool IncldCnst=false) override
void ReadZ(LMRow tz, cIndex_Set &I, Index &D, cIndex wFi=Inf< Index >()) override
Index CheckCnst(HpNum &Ai, HpNum &ScPri, cHpRow CrrPnt) override
void SetMPLog(std::ostream *outs=0, const char lvl=0) override
Definition QPPnltMP.h:296
void ChgAlfa(cIndex i, cHpNum Ai) override
Index MaxName(cIndex wFi=Inf< Index >()) override
Definition QPPnltMP.h:394
HpNum * HpRow
"finer" (fp) array
Definition OPTtypes.h:99
const HpNum cHpNum
a read-only HpNum
Definition OPTtypes.h:102
double HpNum
"finer" floating point numbers
Definition OPTtypes.h:98
const Index cIndex
a read-only Index
Definition OPTtypes.h:64
cIndex * cIndex_Set
read-only array
Definition OPTtypes.h:65
Index * Index_Set
set (array) of indices
Definition OPTtypes.h:61
unsigned int Index
Index in a vector ( >= 0 )
Definition OPTtypes.h:60
cHpNum * cHpRow
read-only array
Definition OPTtypes.h:103
SgRow * SgMat
a bundle (set of subgradients)
Definition OPTtypes.h:113
SgNum * SgRow
a subgradient
Definition OPTtypes.h:112
LMNum * LMRow
a vector of Lagrangean Multipliers
Definition OPTtypes.h:130
double LMNum
a Lagrangean Multiplier
Definition OPTtypes.h:129
cLMNum * cLMRow
a read-only vector of LMs
Definition OPTtypes.h:134
double QuNum
numbers in Q ( G{i}{T} * G{j} )
Definition OPTtypes.h:120
QuNum * QuRow
row of Q
Definition OPTtypes.h:121
cSgNum * cSgRow
a read-only subgradient
Definition OPTtypes.h:116
static constexpr T Inf(void) noexcept
Inf< T >() = infinity value for T.
Definition OPTUtils.h:357
Definition BMinQuad.h:157