NOMAD Source  Version 4.0.0 Beta
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Subproblem Class Reference

Class to define an optimization subproblem. More...

#include <Subproblem.hpp>

Collaboration diagram for Subproblem:

Public Member Functions

 Subproblem (const std::shared_ptr< PbParameters > refPbParams)
 Constructor. More...
 
virtual ~Subproblem ()
 Destructor. More...
 
const PointgetFixedVariable () const
 
std::shared_ptr< PbParametersgetPbParams () const
 

Private Member Functions

void init ()
 Helper for constructor calls to ::setupProblemParameters. More...
 
void setupProblemParameters ()
 Helper for constructor. More...
 

Private Attributes

const Point _fixedVariable
 The elements of this point that have defined values are fixed value "variables". The elements that are undefined are for true variables. More...
 
size_t _dimension
 Dimension of the subproblem. More...
 
const std::shared_ptr
< PbParameters
_refPbParams
 
std::shared_ptr< PbParameters_subPbParams
 

Detailed Description

Class to define an optimization subproblem.

Subproblem of lesser dimension than the original problem

  • Sets up the new parameters
  • Keeps the necessary information to bridge the gap between subproblem and original problem

Definition at line 23 of file Subproblem.hpp.

Constructor & Destructor Documentation

Subproblem::Subproblem ( const std::shared_ptr< PbParameters refPbParams)
inlineexplicit

Constructor.

Pb parameters will be recomputed as dimension has changed.

Definition at line 44 of file Subproblem.hpp.

45  : _fixedVariable(refPbParams->getAttributeValue<Point>("FIXED_VARIABLE")),
46  _refPbParams(refPbParams),
47  _subPbParams(nullptr)
48  {
49  init();
50  }
std::shared_ptr< PbParameters > _subPbParams
Definition: Subproblem.hpp:37
void init()
Helper for constructor calls to ::setupProblemParameters.
const std::shared_ptr< PbParameters > _refPbParams
Definition: Subproblem.hpp:32
Class for the representation of a point.
Definition: Point.hpp:23
const Point _fixedVariable
The elements of this point that have defined values are fixed value &quot;variables&quot;. The elements that ar...
Definition: Subproblem.hpp:26
virtual Subproblem::~Subproblem ( )
virtual

Destructor.

Member Function Documentation

const Point& Subproblem::getFixedVariable ( ) const
inline

Definition at line 57 of file Subproblem.hpp.

57 { return _fixedVariable; }
const Point _fixedVariable
The elements of this point that have defined values are fixed value &quot;variables&quot;. The elements that ar...
Definition: Subproblem.hpp:26
std::shared_ptr<PbParameters> Subproblem::getPbParams ( ) const
inline

Definition at line 58 of file Subproblem.hpp.

58 { return _subPbParams; }
std::shared_ptr< PbParameters > _subPbParams
Definition: Subproblem.hpp:37
void Subproblem::init ( )
private

Helper for constructor calls to ::setupProblemParameters.

void Subproblem::setupProblemParameters ( )
private

Helper for constructor.

Construct the subproblem parameters (X0, LB, UB, mesh sizes, ...) based on Subproblem::_fixedVariable

Member Data Documentation

size_t Subproblem::_dimension
private

Dimension of the subproblem.

Definition at line 27 of file Subproblem.hpp.

const Point Subproblem::_fixedVariable
private

The elements of this point that have defined values are fixed value "variables". The elements that are undefined are for true variables.

Definition at line 26 of file Subproblem.hpp.

const std::shared_ptr<PbParameters> Subproblem::_refPbParams
private

Reference to the original problem's PbParameters.

Definition at line 32 of file Subproblem.hpp.

std::shared_ptr<PbParameters> Subproblem::_subPbParams
private

PbParameters converted to subdimension

Definition at line 37 of file Subproblem.hpp.


The documentation for this class was generated from the following file: