[Insight-developers] Amoeba optimizer,
Luis Ibanez
ibanez@cs.unc.edu
Tue, 27 Mar 2001 15:10:52 -0500
Hi,
I'm having trouble with the Amoeba optimizer.
vnl optimizers have been adapted by creating
an adaptor cost function like:
+-------------------+
| vnl_cost_function |
+-------------------+
^
|
+-----------------------------+
| vnlCostFunctionAdaptor | +--------------+
| has a CostFunction::Pointer |-->| CostFunction |
+-----------------------------+ +--------------+
Then, the pointer to vnlCostFunction is passed
to the specific vnl_optimizer.
It seems that Amoeba makes a copy of itself,
and assumes that with the cost_function has
no state associated with it. So, it basically
creates brand new vnl_cost_function (only respecting
the type). That causes that the real CostFunction
pointer is never passed to the real optimizer...
Any suggestions ...
Thanks
Luis