#include <PluginSimplex.hxx>


Public Member Functions | |
| PluginSimplex (Pool *pool) | |
| virtual | ~PluginSimplex () |
| TypeCode * | getTCForIn () const |
| returns typecode of type expected as Input. OwnerShip of returned pointer is held by this. More... | |
| TypeCode * | getTCForOut () const |
| returns typecode of type expected as Output. OwnerShip of returned pointer is held by this. More... | |
| void | parseFileToInit (const std::string &fileName) |
| void | start () |
| void | takeDecision () |
| Update _pool attribute before performing anything. More... | |
| void | initialize (const Any *input) throw (Exception) |
| void | finish () |
Public Member Functions inherited from YACS::ENGINE::OptimizerAlgBase | |
| virtual TypeCode * | getTCForInProxy () const |
| virtual TypeCode * | getTCForOutProxy () const |
| virtual TypeCode * | getTCForAlgoInitProxy () const |
| virtual TypeCode * | getTCForAlgoResultProxy () const |
| virtual void | initializeProxy (const Any *input) throw (Exception) |
| virtual void | startProxy () |
| virtual void | takeDecisionProxy () |
| virtual void | finishProxy () |
| virtual Any * | getAlgoResultProxy () |
| virtual void | setPool (Pool *pool) |
| virtual void | setProc (Proc *proc) |
| virtual Proc * | getProc () |
| virtual bool | hasError () const |
| virtual const std::string & | getError () const |
| virtual void | setError (const std::string &message) |
| void | setNbOfBranches (int nbOfBranches) |
| int | getNbOfBranches () const |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
| unsigned int | getRefCnt () const |
| void | incrRef () const |
| bool | decrRef () |
Protected Attributes | |
| SalomeEventLoop * | dst |
| LinearDecoder * | dec |
| Maestro * | mtr |
| Simplex * | solv |
Protected Attributes inherited from YACS::ENGINE::OptimizerAlgBase | |
| Pool * | _pool |
| Proc * | _proc |
| std::string | _errorMessage |
| int | _nbOfBranches |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt |
Private Attributes | |
| int | _idTest |
| TypeCode * | _tc |
| TypeCode * | _tcOut |
Additional Inherited Members | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 |
Protected Member Functions inherited from YACS::ENGINE::OptimizerAlgBase | |
| OptimizerAlgBase (Pool *pool) | |
| virtual | ~OptimizerAlgBase () |
| virtual TypeCode * | getTCForAlgoInit () const |
| returns typecode of type expected for algo initialization. OwnerShip of returned pointer is held by this. More... | |
| virtual TypeCode * | getTCForAlgoResult () const |
| returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this. More... | |
| virtual Any * | getAlgoResult () |
| Called when optimization has succeed. More... | |
Definition at line 39 of file PluginSimplex.hxx.
| PluginSimplex::PluginSimplex | ( | Pool * | pool | ) |
Definition at line 32 of file PluginSimplex.cxx.
References _tc, dec, YACS::ENGINE::RefCounter::decrRef(), YACS::ENGINE::Double, dst, mtr, and solv.
|
virtual |
|
virtual |
_pool->getCurrentId gives the id at the origin of this call. Perform the job of analysing to know what new jobs to do (_pool->pushInSample) or in case of convergence _pool->destroyAll
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 103 of file PluginSimplex.cxx.
References dec, Decoder::echo(), Simplex::finish(), Simplex::solution(), and solv.
|
virtual |
returns typecode of type expected as Input. OwnerShip of returned pointer is held by this.
Implements YACS::ENGINE::OptimizerAlgBase.
Definition at line 58 of file PluginSimplex.cxx.
References _tc.
|
virtual |
returns typecode of type expected as Output. OwnerShip of returned pointer is held by this.
Implements YACS::ENGINE::OptimizerAlgBase.
Definition at line 63 of file PluginSimplex.cxx.
References _tc.
Reimplemented from YACS::ENGINE::OptimizerAlgBase.
Definition at line 99 of file PluginSimplex.cxx.
| void PluginSimplex::parseFileToInit | ( | const std::string & | fileName | ) |
Definition at line 68 of file PluginSimplex.cxx.
References YACS::ENGINE::OptimizerAlgBase::_pool, BORNEMAX, BORNEMIN, dec, dst, CORBAEngineTest::i, mtr, NBEVAL, NBGENE, NBNODE, Simplex::setStop(), and solv.
|
virtual |
Implements YACS::ENGINE::OptimizerAlgBase.
Definition at line 88 of file PluginSimplex.cxx.
References solv, and Simplex::start().
|
virtual |
Update _pool attribute before performing anything.
Implements YACS::ENGINE::OptimizerAlgBase.
Definition at line 93 of file PluginSimplex.cxx.
References Simplex::next(), and solv.
|
private |
Definition at line 42 of file PluginSimplex.hxx.
|
private |
Definition at line 43 of file PluginSimplex.hxx.
Referenced by getTCForIn(), getTCForOut(), PluginSimplex(), and ~PluginSimplex().
|
private |
Definition at line 44 of file PluginSimplex.hxx.
|
protected |
Definition at line 49 of file PluginSimplex.hxx.
Referenced by finish(), parseFileToInit(), PluginSimplex(), and ~PluginSimplex().
|
protected |
Definition at line 48 of file PluginSimplex.hxx.
Referenced by parseFileToInit(), PluginSimplex(), and ~PluginSimplex().
|
protected |
Definition at line 50 of file PluginSimplex.hxx.
Referenced by parseFileToInit(), PluginSimplex(), and ~PluginSimplex().
|
protected |
Definition at line 52 of file PluginSimplex.hxx.
Referenced by finish(), parseFileToInit(), PluginSimplex(), start(), takeDecision(), and ~PluginSimplex().