#include <saemul.hxx>
|
| std::vector< double > * | eval (std::vector< double > &x) |
| |
|
| SalomeTest * | solver |
| |
| std::queue< std::pair< long, std::vector< double > * > > | q |
| |
| std::vector< double > * | out |
| |
Definition at line 31 of file saemul.hxx.
◆ Emulator()
| Emulator::Emulator |
( |
void |
| ) |
|
◆ ~Emulator()
| Emulator::~Emulator |
( |
void |
| ) |
|
◆ destroyAll()
| void Emulator::destroyAll |
( |
void |
| ) |
|
|
virtual |
Implements Superviseur.
Definition at line 37 of file saemul.cxx.
39 std::pair<long,std::vector<double> *> pa;
std::queue< std::pair< long, std::vector< double > * > > q
References q.
Referenced by ~Emulator().
◆ eval()
| std::vector< double > * Emulator::eval |
( |
std::vector< double > & |
x | ) |
|
|
protected |
Definition at line 74 of file saemul.cxx.
76 std::vector<double> *res;
77 res =
new std::vector<double>(1);
85 (*res)[0] = fabs(x1) + fabs(x2+50);
87 (*res)[0] = fabs(x2-50);
89 (*res)[0] += 1 + fabs(x1+50);
91 (*res)[0] += 2 + fabs(x1-50);
98 x1 = x[0] ; x2 = x1*x1 - x[1]; x1 -= 1;
99 (*res)[0] = x1*x1 + 100*x2*x2 ;
109 x2 *= cos(y/sqrt(
i+1));
111 (*res)[0] = x1 / 4000 - x2 + 1;
References yacsorb.CORBAEngineTest::i, and NBGENE.
Referenced by getCurrentId().
◆ getCurrentId()
| long Emulator::getCurrentId |
( |
void |
| ) |
|
|
virtual |
Implements Superviseur.
Definition at line 57 of file saemul.cxx.
59 std::vector<double> *cal;
60 std::pair<long,std::vector<double> *> pa;
62 pa =
q.front();
q.pop();
std::vector< double > * eval(std::vector< double > &x)
std::vector< double > * out
References eval(), out, and q.
◆ getCurrentOut()
| std::vector< double > * Emulator::getCurrentOut |
( |
void |
| ) |
|
|
virtual |
◆ push()
| void Emulator::push |
( |
long |
id, |
|
|
std::vector< double > & |
cal |
|
) |
| |
|
virtual |
Implements Superviseur.
Definition at line 48 of file saemul.cxx.
50 std::pair<long, std::vector<double> *> *tmp;
52 tmp =
new std::pair<long, std::vector<double> *>(id, &cal);
References q.
◆ run()
| void Emulator::run |
( |
void |
| ) |
|
◆ out
| std::vector<double>* Emulator::out |
|
protected |
| std::queue<std::pair<long, std::vector<double> *> > Emulator::q |
|
protected |
◆ solver
The documentation for this class was generated from the following files: