Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

CreateLegacyMOPModel Class Reference

Last update: 16.07.2025

Defines a LegacyMOPModel. This type of model wraps the old MOP and makes it accessible to The MOP framework. Used Properties: More...

Public Member Functions

virtual string __str__ ()
 Output function used in python context. Use this function to print instances of this class in python. More...
 
virtual addProperty (PropertyBase p)
 Properties that help the ScalarMOP scheduling the Models to be built The properties class needs to be implemented for the specific model type.
 
ModelBasecompute (::data_handler::DataHandlerBase datahandler, TrainingPlanBase training_plan, quality_measure::QualityMeasureBase quality_measure)
 Builds the model from the given samples and returns the model. More...
 
 CreateLegacyMOPModel ()
 Creates an default initialized instance of this class.
 
 CreateLegacyMOPModel (CreateLegacyMOPModel other)
 Copies an instance of this class.
 
virtual PropertyList getProperties ()
 Returns the properties stored by this user.
 
virtual bool isValid (::data_handler::DataHandlerBase datahandler, TrainingPlanBase training_plan) override
 Destroys an instance of this class. More...
 
CreateLegacyMOPModel operator= (CreateLegacyMOPModel)
 Copies an instance of this class.
 
virtual transferProperties (PropertyList property_list)
 Convenience function to transfer a complete PropertyList into the model. More...
 

Public Attributes

string node_name
 
bool use_BoxCox
 if true, then Box Cox is tested
 
bool use_CoD_filter
 if true, then CoD filter is used
 
bool use_CoI_filter
 if true, then CoI filter is used
 
bool use_correlation_filter
 if true, then correlation filter is used
 
bool use_input_correlation_filter
 if true, then input correlation filter is used
 
bool use_kriging
 if true, then kriging is tested
 
bool use_kriging_anisotropic
 if true, then anisotropic kriging is tested
 
bool use_MLS
 if true, then MLS is tested
 
bool use_polynomials
 if true, then polynomial models are tested
 
bool use_significance_filter
 if true, then significance filter is used
 
bool use_Spearman_filter
 if true, then Spearman filter is used
 
string working_dir
 

Detailed Description

Defines a LegacyMOPModel. This type of model wraps the old MOP and makes it accessible to The MOP framework. Used Properties:

  • ComplexityProperty

Member Function Documentation

◆ __str__()

virtual string __str__ ( )
virtualinherited

Output function used in python context. Use this function to print instances of this class in python.

Returns
string containing the object

Reimplemented in CreateCustomModel.

◆ compute()

ModelBase* compute ( ::data_handler::DataHandlerBase  datahandler,
TrainingPlanBase  training_plan,
quality_measure::QualityMeasureBase  quality_measure 
)

Builds the model from the given samples and returns the model.

Parameters
datahandlerThe datahandler that contains the samples
training_planThe training plan that specifies how the model will be trained
quality_measureThe quality measure that allows to compute a models approximation quality
Returns
The trained model iff not cancelled

◆ isValid()

virtual bool isValid ( ::data_handler::DataHandlerBase  datahandler,
TrainingPlanBase  training_plan 
)
overridevirtual

Destroys an instance of this class.

This function checks if the model can validly be trained from the given samples

Parameters
samplesThe samples the model shall be trained with.
Returns
True iff th emodel can be trained with the configuration data, the properties and samples

Implements CreateModelBase.

◆ transferProperties()

virtual transferProperties ( PropertyList  property_list)
virtualinherited

Convenience function to transfer a complete PropertyList into the model.

Parameters
property_listThe properties to transfer into this model

Connect with Ansys