#include <MeLOn.h>
|
| MelonModel (std::shared_ptr< ModelParserFactory > parserFactory) |
| Constructor.
|
|
virtual void | _set_data_object (std::shared_ptr< const ModelData > modelData)=0 |
| Sets data object containing model parameters.
|
|
template<typename RandomAccessIterator > |
void | _set_constraints (std::vector< T > &constraints, std::vector< T > &constraintEvaluation, RandomAccessIterator &constraintValue) const |
| Sets constraints required for fullspace opimization.
|
|
template<typename RandomAccessIterator > |
void | _set_constraints (std::vector< T > &constraints, T &constraintEvaluation, RandomAccessIterator &constraintValue) const |
| Sets constraints required for fullspace opimization.
|
|
◆ ~MelonModel()
◆ MelonModel()
Constructor.
- Parameters
-
[in] | parserFactory | is a pointer to an parser factory derived from ModelParserFactory wich creates compatible parsers for the model derived from this class |
◆ _set_constraints() [1/2]
template<typename T >
template<typename RandomAccessIterator >
void melon::MelonModel< T >::_set_constraints |
( |
std::vector< T > & | constraints, |
|
|
std::vector< T > & | constraintEvaluation, |
|
|
RandomAccessIterator & | constraintValue ) const |
|
protected |
Sets constraints required for fullspace opimization.
- Parameters
-
[out] | constraints | vector containing the constraints for the given variables (difference between values given by optimizer and values calulated by model) |
[in,out] | constraintEvaluation | vector containing the values which were calculated by the model, returned is the vector containing the values which were given by the optimizer |
[in] | constraintValue | is an iterator which points to the beginning of the variables, for which the constraints should be set, in the vector of variables given by the optimizer |
◆ _set_constraints() [2/2]
template<typename T >
template<typename RandomAccessIterator >
void melon::MelonModel< T >::_set_constraints |
( |
std::vector< T > & | constraints, |
|
|
T & | constraintEvaluation, |
|
|
RandomAccessIterator & | constraintValue ) const |
|
protected |
Sets constraints required for fullspace opimization.
- Parameters
-
[out] | constraints | vector containing the constraints for the given variables (difference between values given by optimizer and values calulated by model) |
[in,out] | constraintEvaluation | is the values which was calculated by the model, returned is the vector containing the values which were given by the optimizer |
[in] | constraintValue | is an iterator which points to the beginning of the variables, for which the constraints should be set, in the vector of variables given by the optimizer |
◆ _set_data_object()
◆ load_model() [1/3]
Loads new model from file.
- Parameters
-
[in] | modelData | is a ModelData object containing the data which defines the model |
◆ load_model() [2/3]
Loads new model from file.
- Parameters
-
[in] | modelName | is the name of the model |
[in] | fileType | specifies the file type of the model file |
◆ load_model() [3/3]
Loads new model from file.
- Parameters
-
[in] | modelPath | is the path to the directory in which the network is located |
[in] | modelName | is the name of the model |
[in] | fileType | specifies the file type of the model file |
◆ _modelLoaded
Flag which indicates wether a model is currently loaded or not
◆ _parserFactory
Pointer to a parser factory class which creates instances of parser objects fitting the type of model and file
The documentation for this class was generated from the following file:
- C:/Data/Git/MeLOn/common/inc/MeLOn.h