|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.aida.ref.optimizer.AbstractOptimizer
Abstract implementation of IOptimizer
Field Summary | |
protected IOptimizerConfiguration |
configuration
|
protected IDomainConstraint |
domainConstraint
|
protected hep.aida.IFunction |
function
|
protected OptimizerResult |
result
|
Constructor Summary | |
AbstractOptimizer()
Creates a new instance of AbstractOptimizer |
Method Summary | |
IOptimizerConfiguration |
configuration()
Get the IOptimizer configuration |
String[] |
listVariableSettings()
Get the list of the names of the IVariableSettings defined. |
abstract void |
optimize()
Perform the optimization. |
void |
reset()
Reset the function, the domain of constraints and the internal configuration. |
void |
resetVariableSettings()
Reset all variable settings. |
IOptimizerResult |
result()
Get the optimization results. |
void |
setConfiguration(IOptimizerConfiguration configuration)
Set the internal configuration of the Optimizer. |
void |
setConstraints(IDomainConstraint iDomainConstraint)
Set the domain of constraints for the IOptimizer. |
void |
setFunction(hep.aida.IFunction iFunction)
Set the IFunction to be optimized. |
IVariableSettings |
variableSettings(String name)
Get the IVariableSettings corresponding to a give variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected hep.aida.IFunction function
protected OptimizerResult result
protected IOptimizerConfiguration configuration
protected IDomainConstraint domainConstraint
Constructor Detail |
public AbstractOptimizer()
Method Detail |
public IOptimizerConfiguration configuration()
configuration
in interface IOptimizer
public abstract void optimize()
optimize
in interface IOptimizer
true
if the optimization was
successfull, false
otherwise.public void reset()
reset
in interface IOptimizer
public IOptimizerResult result()
result
in interface IOptimizer
public void setConfiguration(IOptimizerConfiguration configuration)
setConfiguration
in interface IOptimizer
configuration
- The configuration.
true
if the configuration was set succesfully,
false
otherwise.public void setConstraints(IDomainConstraint iDomainConstraint)
setConstraints
in interface IOptimizer
iDomainConstraint
- The domain of constraints.
true
if the IDomainConstraint is set succesfully,
false
otherwise.public void setFunction(hep.aida.IFunction iFunction)
setFunction
in interface IOptimizer
iFunction
- The IFunction to be optimized.
true
if the IFunction is set succesfully,
false
otherwise.public String[] listVariableSettings()
IOptimizer
listVariableSettings
in interface IOptimizer
public void resetVariableSettings()
IOptimizer
resetVariableSettings
in interface IOptimizer
public IVariableSettings variableSettings(String name)
IOptimizer
variableSettings
in interface IOptimizer
name
- The variable's name.
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |