RE: [Vxl-users] getting the answer from a vnl_optimizer From: Andrew Fitzgibbon - 2002-02-24 15:27:04 ```The vector of parameters which you supplied as the initial guess is changed after the routine returns to hold the final answer. It is generally not true that the last call to f() was at the lowest value. ```
 [Vxl-users] getting the answer from a vnl_optimizer From: Luis Ibanez - 2002-02-23 23:57:22 ```Hi I'm using the optimizers in vnl and couldn't find so far a way of getting access to the set of parameters that are the final solution to the optimization. So I'm now writing cost functions that store the set of parameters of the last call to f() or gradf() and assuming that when the optimizers returns its last evaluation was the one corresponding to the optimal set of parameters. Is there a way of getting these parameters directly from the optimizer ? Thanks for any help Luis ```
 Re: [Vxl-users] getting the answer from a vnl_optimizer From: Amitha Perera - 2002-02-24 05:16:37 ```When you call the minimize function of a minimizer, the input parameter is typically an initial point, and will be modified to be the minimizing point: vnl_conjugate_gradient cg; ... vnl_vector x = (starting point) cg.minimize( x ); vcl_cout << "Minimum value has parameters " << x << vcl_endl; Is this what you meant? Amitha. On Sat, Feb 23, 2002 at 06:57:20PM -0500, Luis Ibanez wrote: > Hi > > I'm using the optimizers in vnl and couldn't find so > far a way of getting access to the set of parameters > that are the final solution to the optimization. > > So I'm now writing cost functions that store the > set of parameters of the last call to f() or gradf() > and assuming that when the optimizers returns its > last evaluation was the one corresponding to the > optimal set of parameters. > > Is there a way of getting these parameters directly > from the optimizer ? > > > Thanks for any help > > > Luis > > > > > _______________________________________________ > Vxl-users mailing list > Vxl-users@... > https://lists.sourceforge.net/lists/listinfo/vxl-users ```
 Re: [Vxl-users] getting the answer from a vnl_optimizer From: Luis Ibanez - 2002-02-24 05:20:44 ```Yes, that's what I was looking for. Thanks Luis ------------------------------------------------ Amitha Perera wrote: >When you call the minimize function of a minimizer, the input >parameter is typically an initial point, and will be modified to be >the minimizing point: > > vnl_conjugate_gradient cg; > ... > vnl_vector x = (starting point) > cg.minimize( x ); > vcl_cout << "Minimum value has parameters " << x << vcl_endl; > >Is this what you meant? > >Amitha. > > >On Sat, Feb 23, 2002 at 06:57:20PM -0500, Luis Ibanez wrote: > >>Hi >> >>I'm using the optimizers in vnl and couldn't find so >>far a way of getting access to the set of parameters >>that are the final solution to the optimization. >> >>So I'm now writing cost functions that store the >>set of parameters of the last call to f() or gradf() >>and assuming that when the optimizers returns its >>last evaluation was the one corresponding to the >>optimal set of parameters. >> >>Is there a way of getting these parameters directly >>from the optimizer ? >> >> >> Thanks for any help >> >> >> Luis >> >> >> >> >>_______________________________________________ >>Vxl-users mailing list >>Vxl-users@... >>https://lists.sourceforge.net/lists/listinfo/vxl-users >> > ```
 RE: [Vxl-users] getting the answer from a vnl_optimizer From: Andrew Fitzgibbon - 2002-02-24 15:27:04 ```The vector of parameters which you supplied as the initial guess is changed after the routine returns to hold the final answer. It is generally not true that the last call to f() was at the lowest value. ```