NPSOL optimizer in OpenMx

Posted on
No user picture. krzysiek Joined: 09/05/2013
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

Replied on Fri, 09/07/2018 - 07:51
Picture of user. tbates Joined: 07/31/2009

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

Replied on Fri, 09/07/2018 - 12:09
No user picture. krzysiek Joined: 09/05/2013

In reply to by tbates

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
Replied on Fri, 09/07/2018 - 13:12
Picture of user. AdminRobK Joined: 01/24/2014

In reply to by krzysiek

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.