Commit 15aee994 authored by Antonio Frangioni's avatar Antonio Frangioni 🤖

publicized a few methods

... of MinQuad and BMinQuad into QPPenaltyMP, in order to allow fully programmatic parameter setting.
parent ed3cf95f
......@@ -7,18 +7,17 @@
* [B]MinQuad class [see [B]MinQuad.h and references therein]. The class
* conforms to the interface defined by the class MPSolver [see MPSolver.h].
*
* \version 0.90
* \version 0.91
*
* \date 22 - 06 - 2014
* \date 03 - 09 - 2019
*
* \author Antonio Frangioni \n
* Operations Research Group \n
* Dipartimento di Informatica \n
* Universita' di Pisa \n
*
* Copyright &copy 2001 - 2014 by Antonio Frangioni.
* Copyright &copy 2001 - 2019 by Antonio Frangioni.
*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
......@@ -210,6 +209,27 @@ class QPPenaltyMP : public MPSolver ,
void SetDim( cIndex MxBSz = 0 , FiOracle *Oracle = 0 ,
const bool UsAvSt = false );
/*--------------------------------------------------------------------------*/
// "publicize" the MinQuad::SetPricing method
using MinQuad::SetPricing;
/*--------------------------------------------------------------------------*/
#if( HV_NNVAR )
// "publicize" the BMinQuad::SetMaxVarAdd method
using BMinQuad::SetMaxVarAdd;
// "publicize" the BMinQuad::SetMaxVarRmv method
using BMinQuad::SetMaxVarRmv;
#else
// provide a dummy implementation of BMinQuad::SetMaxVarAdd
inline void SetMaxVarAdd( cIndex MVA = 1 ) { }
// provide a dummy implementation of BMinQuad::SetMaxVarRmv
inline void SetMaxVarRmv( cIndex MVR = 1 ) { }
#endif
/*--------------------------------------------------------------------------*/
inline void Sett( cHpNum tt = 1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment