You are here

NPSOL optimizer in OpenMx

6 posts / 0 new
Last post
krzysiek's picture
Offline
Joined: 09/05/2013 - 09:49
NPSOL optimizer in OpenMx

Hi,

I'd like to use NPSOL optimizer. I tried to switch from CSOLNP to NPSOL optimizer using mxOption but it doesn't work. Also, I was not able to install NPSOL by applying omxGetNPSOL() function. What should I do to use NPSOL optimizer? I use Windows 10, and my version of R is 3.5.1, and OpenMx 2.10.

best regards,
Krzysiek

tbates's picture
Offline
Joined: 07/31/2009 - 14:25
install.OpenMx

if you're using umx install.OpenMx("NPSOL") will grab the NPSOL version for you.

umx_set_optimizer() will show your available options, and let you set them
umx_set_optimizer("NPSOL")

Best, tim

krzysiek's picture
Offline
Joined: 09/05/2013 - 09:49
Thank you for the information

Thank you for the information. Unfortunately, I can not do this because install.OpenMx ("NPSOL") function comes from the umx package, which requires OpenMx package. I can not modify the package that is currently in use.
best,
Krzysiek

AdminRobK's picture
Offline
Joined: 01/24/2014 - 12:15
try this instead

Restart R (or at least, unload OpenMx) and follow the instructions here. Basically, copy-paste this,

source('https://openmx.ssri.psu.edu/software/getOpenMx.R')

, into the R prompt and hit the Enter key. You may then want to restart R before trying to load OpenMx. You are indeed correct that Windows will not allow a package that's currently loaded to be overwritten on disk.

krzysiek's picture
Offline
Joined: 09/05/2013 - 09:49
Thank you! It works! Krzysiek

Thank you! It works!
Krzysiek

AdminRobK's picture
Offline
Joined: 01/24/2014 - 12:15
Glad to hear it.

Glad to hear it.

Log in or register to post comments