ImFusion SDK 4.3
OptimizationDialog Class Reference
+ Inheritance diagram for OptimizationDialog:

Public Slots

void onParsAll ()
 
void onParsOne ()
 
void onUpdateAlgorithmList ()
 
void onModeChanged ()
 
void onReload (bool flag)
 
void onSelectionChanged ()
 
void onSelectedAlgorithmChanged ()
 
void onIndividualBounds (bool flag)
 
void onBoundsChanged (double val)
 
void onBoundsEnabled (bool val)
 
void onRun ()
 
void onAddResult ()
 
void onClearResults ()
 
void onSelectResult (int which)
 
void onUpdateStudyScatterPlot ()
 
void onResultSorted (int which)
 

Signals

void run ()
 Emitted if the run button is pressed.
 
void addResult ()
 Emitted if the add result button is pressed.
 
void clearResults ()
 Emitted if the clear results button is pressed.
 
void selectResult (int which)
 Emitted if a different result is selected.
 

Public Member Functions

 OptimizationDialog (QWidget *parent=0)
 
 OptimizationDialog (std::shared_ptr< Optimizer > opt, QWidget *parent=0)
 Creates an optimizer dialog with the parameters from opt.
 
void clear ()
 Clear the list of optimization parameters.
 
void setOptimizer (std::shared_ptr< Optimizer > opt)
 Initialize control with parameters from opt and set it as the optimizer.
 
std::shared_ptr< Optimizeroptimizer () const
 Return optimizer.
 
void addParameter (const QString &name, bool clear=false, bool checked=true)
 Add an entry to the list of optimization parameters.
 
void addRigidParameters (bool clear=false)
 Add the 6 parameters of a rigid transformation, optionally clearing the parameter list before.
 
void addAffineParameters (bool clear=false)
 Add the 12 parameters of an affine transformation (including the rigid ones), optionally clearing the parameter list before.
 
void setParameterChecked (int i, bool checked)
 Sets the checked state of a given paramter.
 
double evaluate (int n, const double *x, double *dx=0) override
 Evaluation of the test function.
 
void setShowRunButton (bool flag)
 Shows or hides the run button.
 
void setGlobal (bool flag, double bounds, int population=0)
 Enable global optimization as preset with given bounds.
 
void setAlwaysUpdateGUI (bool flag)
 Change the flag for GUI update.
 
void setPlotView (PlotView *pv)
 Set plot view instance in order to display results after a plot.
 
void updatePlot ()
 Update the plot view from the last optimizer plot run.
 
void evaluateStudyResult (int which)
 Evaluate the cost function with a result of a prior run random study.
 
bool alwaysUpdateGUI () const
 Return checkbox value if GUI should be updated during optimization.
 
void setOnlyUpdateIfBetter (bool flag)
 Change the flag for GUI update only if better value found.
 
int algorithm () const
 Return the selected optimization algorithm.
 
QString parName (int which) const
 Return the name of an optimization parameter.
 
std::shared_ptr< OptimizercreateOptimizer (bool createNew=true)
 Create and return optimizer based on settings in this dialog.
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 

Additional Inherited Members

- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

Member Function Documentation

◆ addAffineParameters()

void addAffineParameters ( bool clear = false)

Add the 12 parameters of an affine transformation (including the rigid ones), optionally clearing the parameter list before.

The affine parameters will be unchecked by default.

◆ evaluate()

double evaluate ( int n,
const double * x,
double * dx = 0 )
overridevirtual

Evaluation of the test function.

Implements CostFunction.

◆ selectResult

void selectResult ( int which)
signal

Emitted if a different result is selected.

If this signal is not connected from outside, the results of an optimization study are automatically set by calling the evaluate method of the last used optimizer with the corresponding parameters.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close