27 #include "ObjCryst/RefinableObj/GlobalOptimObj.h"
40 SimplexObj(
const string name=
"Unnamed Simplex Object");
41 virtual void Optimize(
long &nbSteps,
const bool silent=
false,
const REAL finalcost=0,
42 const REAL maxTime=-1);
43 virtual void MultiRunOptimize(
long &nbCycle,
long &nbSteps,
const bool silent=
false,
44 const REAL finalcost=0,
const REAL maxTime=-1);
45 virtual void XMLOutput(ostream &os,
int indent=0)
const;
52 CrystVector_long &vIndex,
60 virtual void WXDelete();
61 virtual void WXNotifyDelete();
67 #endif //_CONJUGATEGRADIENT_H
Conjugate Gradient Algorithm object.
virtual void MultiRunOptimize(long &nbCycle, long &nbSteps, const bool silent=false, const REAL finalcost=0, const REAL maxTime=-1)
Launch optimization for multiple runs of N steps.
virtual void Optimize(long &nbSteps, const bool silent=false, const REAL finalcost=0, const REAL maxTime=-1)
Launch optimization (a single run) for N steps.
Abstract base class for all objects in wxCryst.
virtual void XMLOutput(ostream &os, int indent=0) const
Output a description of the object in XML format to a stream.
Base object for Optimization methods.
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
WX Class for a Global Optimization objects.
SimplexObj(const string name="Unnamed Simplex Object")
Constructor.
class to input or output a well-formatted xml beginning or ending tag.
virtual void XMLInput(istream &is, const XMLCrystTag &tag)
Input in XML format from a stream, restoring the set of refined objects and the associated cost funct...
REAL GenerateNewSimplexConfiguration(CrystVector_REAL &vLLK, CrystVector_long &vIndex, unsigned long worst, REAL f)
Try a new configuration by expanding the worst vertex from the center by a factor f...