Package org.opt4j.viewer
Class ConvergencePlotWidget
java.lang.Object
org.opt4j.viewer.ConvergencePlotWidget
- All Implemented Interfaces:
OptimizerIterationListener,ObjectivesMonitor.ObjectivesListener,Widget
public class ConvergencePlotWidget
extends Object
implements Widget, OptimizerIterationListener, ObjectivesMonitor.ObjectivesListener
The
ConvergencePlotWidget plots the convergence for each
Objective.-
Constructor Summary
ConstructorsConstructorDescriptionConvergencePlotWidget(Optimizer optimizer, org.opt4j.viewer.ConvergencePlotData data, ObjectivesMonitor objectivesMonitor, AutoZoomButton autoZoom) Constructs aConvergencePlotWidget. -
Method Summary
Modifier and TypeMethodDescriptiongetPanel()Returns the panel with the content.voidCalled once after the widget is added to theViewport.voiditerationComplete(int iteration) Invoked if theOptimizercompletes an iteration.voidobjectives(Collection<Objective> objectives) Callback method that passes the objectives of the optimization problem.
-
Constructor Details
-
ConvergencePlotWidget
@Inject public ConvergencePlotWidget(Optimizer optimizer, org.opt4j.viewer.ConvergencePlotData data, ObjectivesMonitor objectivesMonitor, AutoZoomButton autoZoom) Constructs aConvergencePlotWidget.- Parameters:
optimizer- the optimizerdata- the dataobjectivesMonitor- the objective monitor that determine the objective of the optimization problem
-
-
Method Details
-
getPanel
Description copied from interface:WidgetReturns the panel with the content. -
init
Description copied from interface:WidgetCalled once after the widget is added to theViewport. -
iterationComplete
Description copied from interface:OptimizerIterationListenerInvoked if theOptimizercompletes an iteration.- Specified by:
iterationCompletein interfaceOptimizerIterationListener- Parameters:
iteration- the completed iteration
-
objectives
Description copied from interface:ObjectivesMonitor.ObjectivesListenerCallback method that passes the objectives of the optimization problem.- Specified by:
objectivesin interfaceObjectivesMonitor.ObjectivesListener- Parameters:
objectives- the objectives
-