public class ConvergencePlotWidget extends Object implements Widget, OptimizerIterationListener, ObjectivesMonitor.ObjectivesListener
ConvergencePlotWidget plots the convergence for each
Objective.| Constructor and Description |
|---|
ConvergencePlotWidget(Optimizer optimizer,
org.opt4j.viewer.ConvergencePlotData data,
ObjectivesMonitor objectivesMonitor,
AutoZoomButton autoZoom)
Constructs a
ConvergencePlotWidget. |
| Modifier and Type | Method and Description |
|---|---|
JPanel |
getPanel()
Returns the panel with the content.
|
void |
init(Viewport viewport)
Called once after the widget is added to the
Viewport. |
void |
iterationComplete(Optimizer optimizer,
int iteration)
Invoked if the
Optimizer completes an iteration. |
void |
objectives(Collection<Objective> objectives)
Callback method that passes the objectives of the optimization
problem.
|
@Inject public ConvergencePlotWidget(Optimizer optimizer, org.opt4j.viewer.ConvergencePlotData data, ObjectivesMonitor objectivesMonitor, AutoZoomButton autoZoom)
ConvergencePlotWidget.optimizer - the optimizerdata - the dataobjectivesMonitor - the objective monitor that determine the objective of the
optimization problempublic JPanel getPanel()
Widgetpublic void init(Viewport viewport)
WidgetViewport.public void iterationComplete(Optimizer optimizer, int iteration)
OptimizerIterationListenerOptimizer completes an iteration.iterationComplete in interface OptimizerIterationListeneroptimizer - the optimizeriteration - the completed iterationpublic void objectives(Collection<Objective> objectives)
ObjectivesMonitor.ObjectivesListenerobjectives in interface ObjectivesMonitor.ObjectivesListenerobjectives - the objectives