Displaying 6 results from an estimated 6 matches for "nmmin".
Did you mean:
ncmin
2006 Apr 13
1
bus error on calling nmmin
Hi,
I'm trying to get a toy program making use of nmmin to run
successfully. I've gotten to the point of compiling. However, when I
attempt to run my executable, I guess a bus error. I see that someone
else has asked about using nmmin before
<http://tolstoy.newcastle.edu.au/R/help/06/03/23944.html>, but I
haven't come across any replies....
2008 Oct 31
0
R help for invoking nmmin()
...t;tempY[3] = 872066;
t->tempY[4] = 871729;
t->tempY[5] = 868550;
t->tempY[6] = 865100;
t->tempY[7] = 862132;
t->tempY[8] = 870266;
t->tempY[9] = 870493;
t->tempY[10] = 893980;
t->tempY[11] = 952914;
t->tempN = y;
cout << fn(n,dpar,(void*)t)<<endl;
nmmin(n, dpar, opar, &value, fn,
&fail, abstol, intol, (void *)t,
1, 0.5, 2, 0,
&fncount, 500);
for(int aa = 0 ; aa < n; aa++) {
cout<< opar[aa]<<",";
}
cout<<"\n";
return 0;
}
I run this code, It told me "Segmentation fault...
2007 Oct 13
1
R API - optim
I am trying to use the R API to call optim functions (nmmin, vmmin, lbfgsb,
etc.) through a C program but I couldn't find the shared library to link
under the R-2.6.0 build which is compiled under Linux (REL5).
main.cpp:35: undefined reference to `Rf_initEmbeddedR(int, char**)'
main.cpp:41: undefined reference to `nmmin'
Thanks in advance for...
2006 Mar 29
1
calling R's optimization routines from C
Hi,
I have read R's Writing Extensions manual and am still confused about how to
use some of the routines there when I call from C. Specifically, I am writing a
little test function which I will optimize using the nmmin function which
underlies R's optim() with Nelder-Mead. I guess I wonder what library/header
files I should be using. I was using R_ext/Applic.h and linking with libR but I
can not get it to work. (Btw, I am using RHEL4/FC4 Linux).
The function is very simple: all it does is calculate the sum o...
2006 Mar 24
0
using R's optimization routines from C
Dear all,
I have been trying to use R's optimization routines from C and I have some
questions. Specifically, I am testing the usage of nmmin which performs
Nelder-Mead optimization in order to learn how to do the above exercise.
I understand from the notes in Chapter 5 that the declaration for both optimfn
as well as nmmin are included in the header file R_ext/Applic.h so I have
included that. Is there anything else (definitions, etc)...
2005 Apr 20
2
how to get code of a .Internal() function?
Hello,
I'm working with the function optim() from stats
package,
and inside this function is called the function
.Internal(optim(....)) and I want to get the code of
this function which would help me to understand why
the Nelder-Mead algorithm doesn't converge with my
data.
I'm working under Windows XP.
Could you reply to this adress because I don't belong
to the mailing list