OpenMx Installation - cannot open the connection - 'failure when receiving data from the peer'
I am very new to OpenMx. I am using it to fit saturated and ACE models to my twin data. I had successfully installed OpenMx using the script for the OpenMx website: source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R')
But now when I am trying to re-run my models and use this version of openMx I receive the following error messages:
source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R')
Error in file(filename, "r", encoding = encoding) :
cannot open the connection to 'https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R'
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
URL 'https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R': status was 'Failure when receiving data from the peer'
Does anyone know what the problem is? If I try and use the CRAN version then I receive the following error when trying to fit my saturated model:
fitSAT <- mxRun( modelSAT, intervals=F )
Running twoSATc with 28 parameters
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
NPSOL is not available in this build. See ?omxGetNPSOL() to download this optimizer
Any help would be greatly appreciated! Thanks
The server was probably down…
The server was probably down when you last tried to install the NPSOL-enabled build of OpenMx. Try source('https://vipbg.vcu.edu/vipbg/OpenMx2/software/getOpenMx.R') again.
Also, there is no need to re-install OpenMx every time you run your script, which it sounds that you might be doing.
In the future, if you don't want to use or cannot use NPSOL, you can switch to one of the other two gradient-based optimizers with code like this:
mxOption(NULL,"Default optimizer","SLSQP") #<--Switch to SLSQP
mxOption(NULL,"Default optimizer","CSOLNP") #<--Switch to CSOLNP
Log in or register to post comments
In reply to The server was probably down… by AdminRobK
Thank you! It is indeed…
Thank you! It is indeed working again now.
Log in or register to post comments