![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|

Public メソッド | |
| SPR_OBJECTDEF (UTCMAESOptimizer) | |
| ACCESS_DESC (UTCMAESOptimizer) | |
| UTCMAESOptimizer (const UTCMAESOptimizerDesc &desc=UTCMAESOptimizerDesc()) | |
| Constructor. | |
| ~UTCMAESOptimizer () | |
| Destructor. | |
| void | Clear () |
| Destruct Values. | |
| void | SetDimension (int dimension) |
| Set Number of Parameters. | |
| void | Initialize () |
| Initialize Optimizer. | |
| double * | GetPopulation () |
| Get Parameter Value to Compute Objective Function. | |
| int | GetPopulationSize () |
| double * | GetPopulation (int index) |
| void | SetObjectiveFunctionValue (double value) |
| Set Objective Function Value Computation Result. | |
| void | SetObjectiveFunctionValue (double value, int index) |
| void | Next () |
| Proceed Optimize Process Step. | |
| bool | NextGeneration () |
| Generate population for next generation. When finished it returns false. | |
| bool | IsFinished () |
| Check Optimization is Finished or Not. | |
| double * | GetResult () |
| Return Results. | |
| void | SetInitialStdDev (const double *initialStdDev) |
| Set Initial Standard Deviation. | |
| int | GetCurrentGeneration () |
| Get Current Generation Number. | |
| int | GetCurrentPopulation () |
| Get Current Population Number. | |
| double | GetCs () |
| double | GetLambda () |
Public メソッド inherited from UTOptimizer | |
| SPR_OBJECTDEF (UTOptimizer) | |
| UTOptimizer () | |
| Constructor. | |
| virtual | ~UTOptimizer () |
| Destructor. | |
| virtual int | GetDimension () |
| Get Number of Parameters. | |
| virtual void | SetInitialValue (const double *initialValue) |
| Set Initial Value. | |
| bool | NextGeneration () |
| virtual double | GetFitness () |
| Return Fitness. | |
Public メソッド inherited from Object | |
| SPR_OBJECTDEF (Object) | |
| クラス名の取得などの基本機能の実装 | |
| ObjectIf * | GetObjectIf () |
| const ObjectIf * | GetObjectIf () const |
| virtual void | Print (std::ostream &os) const |
| デバッグ用の表示 | |
| virtual void | PrintShort (std::ostream &os) const |
| virtual ObjectIf * | CreateObject (const IfInfo *info, const void *desc) |
| オブジェクトの作成 | |
| virtual size_t | NChildObject () const |
| 子オブジェクトの数 | |
| virtual ObjectIf * | GetChildObject (size_t pos) |
| 子オブジェクトの取得 | |
| virtual const ObjectIf * | GetChildObject (size_t pos) const |
| virtual bool | AddChildObject (ObjectIf *o) |
| 子オブジェクトの追加 | |
| virtual bool | DelChildObject (ObjectIf *o) |
| 子オブジェクトの削除 | |
| virtual void | Loaded (UTLoadContext *) |
| ファイルロード後に一度呼ばれる。ノードの設定に使う。 呼び出し順序に依存する処理がしたい場合は、UTLoadHandeler と UTLoadTask を使うと良い。 | |
| virtual void | Setup () |
| ノードの設定をするための関数 | |
| virtual bool | GetDesc (void *desc) const |
| デスクリプタの読み出し(コピー版) | |
| virtual void | SetDesc (const void *desc) |
| デスクリプタの設定 | |
| virtual const void * | GetDescAddress () const |
| デスクリプタの読み出し(参照版) | |
| virtual size_t | GetDescSize () const |
| デスクリプタのサイズ | |
| virtual bool | GetState (void *state) const |
| 状態の読み出し(コピー版) | |
| virtual const void * | GetStateAddress () const |
| 状態の読み出し(参照版) | |
| virtual void | GetStateR (char *&state) |
| 状態の再帰的な読み出し | |
| virtual void | SetState (const void *state) |
| 状態の設定 | |
| virtual void | SetStateR (const char *&state) |
| 状態の再帰的な設定 | |
| virtual bool | WriteStateR (std::ostream &fout) |
| 状態のファイルへの書き出し | |
| virtual bool | WriteState (std::string fileName) |
| virtual bool | ReadStateR (std::istream &fin) |
| 状態の読み込み | |
| virtual bool | ReadState (std::string fileName) |
| virtual size_t | GetStateSize () const |
| 状態のサイズ | |
| virtual void | ConstructState (void *m) const |
| メモリブロックを状態型に初期化 | |
| virtual void | DestructState (void *m) const |
| 状態型をメモリブロックに戻す | |
| virtual void | DumpObjectR (std::ostream &os, int level=0) const |
| メモリデバッグ用。単純にツリーのオブジェクトをファイルにダンプする。 | |
Public メソッド inherited from UTCMAESOptimizerDesc | |
| SPR_DESCDEF (UTCMAESOptimizer) | |
Protected 変数 | |
| double * | initialStdDev |
| double * | objectiveFunctionValues |
| double * | finalValue |
| double *const * | population |
| int | currGenerationNum |
| int | currPopulationNum |
| bool | optimizationFinished |
Protected 変数 inherited from UTOptimizer | |
| int | dimension |
| double * | initialValue |
| double | currentFitness |
Additional Inherited Members | |
Public 型 inherited from UTCMAESOptimizerDesc | |
| enum | Weights { UTCMA_UNINITIALIZED_WEIGHTS, UTCMA_LINEAR_WEIGHTS, UTCMA_EQUAL_WEIGHTS, UTCMA_LOG_WEIGHTS } |
| Determines the method used to initialize the weights. | |
Public 変数 inherited from UTCMAESOptimizerDesc | |
| double | stopMaxFunEvals |
| Maximal number of objective function evaluations. | |
| double | facmaxeval |
| double | stopMaxIter |
| Maximal number of iterations. | |
| struct { | |
| bool flg | |
| double val | |
| } | stStopFitness |
| Minimal fitness value. Only activated if flg is true. | |
| double | stopTolFun |
| Minimal value difference. | |
| double | stopTolFunHist |
| Minimal history value difference. | |
| double | stopTolX |
| Minimal search space step size. | |
| double | stopTolUpXFactor |
| Defines the maximal condition number. | |
| int | lambda |
| Population size. [詳細] | |
| int | mu |
| Number of individuals used to recompute the mean. | |
| double | mucov |
| double | mueff |
| Variance effective selection mass, should be lambda/4. | |
| std::vector< double > | weights |
| Weights used to recombinate the mean sum up to one. | |
| double | damps |
| Damping parameter for step-size adaption, d = inifinity or 0 means adaption is turned off, usually close to one. | |
| double | cs |
| cs^-1 (approx. [詳細] | |
| double | ccumcov |
| double | ccov |
| ccov^-1 (approx. [詳細] | |
| double | diagonalCov |
| struct { | |
| double modulo | |
| double maxtime | |
| } | updateCmode |
| double | facupdateCmode |
|
enum Spr::UTCMAESOptimizerDesc::Weights | weightMode |
Protected メソッド inherited from Object | |
| virtual void | PrintHeader (std::ostream &os, bool bClose) const |
| 開き括弧 | |
| virtual void | PrintChildren (std::ostream &os) const |
| 子オブジェクトをPrint | |
| virtual void | PrintFooter (std::ostream &os) const |
| 閉じ括弧 | |
| virtual void | BeforeGetDesc () const |
| GetDesc()の前に呼ばれる | |
| virtual void | AfterSetDesc () |
| SetDesc()のあとに呼ばれる | |
Static Protected メソッド inherited from Object | |
| static void | ConstructState (ObjectIf *o, char *&s) |
| sをoのStateとして初期化する. | |
| static void | DestructState (ObjectIf *o, char *&s) |
| sをoのStateからメモリブロックに戻す. | |