-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ILP issue #51
Comments
Hi Ansuman, You having issues running the examples on the transcriptutorial or is it your own data? After installing CPLEX did you specify correctly the path where you have the cplex executable stored or you used the path which was set on the example? Can you please show us how you are using the runCARNIVAL function? The memory issues with lpSolve are unfortunately to be expected since it relies on a matrix formulation of the ILP problems which can get quite large in size for real-case applications of CARNIVAL. We have only implemented lpSolve to run small test examples. Cheers, |
Hi Enio, I couldn't successfully install CPLEX. It looks like a common problem for OSx Catalina users. They suggest installing light mode but that is not available online to download right now.. I am testing the tutorial and for this I use the data given in the tutorial. Here is the CARNIVAL part:
In lpSolve case, I give my path. But, it gives memory error so I assume path is not the problem. I installed CBC and got the same error I got from lpSolve. The problem is I cannot identify the error I got.. I tried online suggestions to successfully install CPLEX but it didn't work out. Here is the error I got after installing IBM CPLEX, maybe you can give some advice so that I can run CARNIVAL:
-Asuman |
Yes, it is best if you get CPLEx which you can get with no-cost here if you plan using it for academic purposes. You can just download it and find the cplex executable file and then store it anywhere on the computer. For lpSolve it is not needed to set a path, however again lpSolve will not work for large/real case-studies. Cheers, |
How about this error:
I am now having this with CPLEX. How can I solve it? All the best, |
I think you are still using lpSolve. Did you set solver='cplex' and solverPath to the path where the cplex is? |
Yes, I did that. |
Can you please send me the part of the script where you are using the runCARNIVAL function? :) We usually did not face memory issues when using CPLEX. |
Just to make sure i also removed lpSolve package from library.
Many thanks Enio!! |
Hmm ok. Not sure if the path you are setting does not actually point to the executable file. Does the cplex_studio2010-osx file you are pointing looks something like this. If yes, maybe can you also store this file somewhere else (i.e. Desktop, Documents, ..) and update the solverPath accordingly because not sure if using a dot character on the path string might mess up something when we read the solverPath parameter. |
Maybe I figured the possible error. Try running: carnival_result = CARNIVAL::runCARNIVAL(inputObj= iniciators,
measObj = tfList$t,
netObj = sif,
weightObj = progenylist$score,
solverPath = "/Users/asu/cplex_studio2010-osx.app/Contents/MacOS/cplex_studio2010-osx",
solver = "cplex",
timelimit=7200,
mipGAP=0,
poolrelGAP=0 ) |
Hi Enio, It is working now!! I want to explain how so it may help someone else save their time. First of all, IBM CPLEX was not successfully installed to my OSx Catalina, thus runCARNIVAL was giving errors. Installation problem was solved after I disabled Dark Mode on my Mac. It was somehow interfering with the CPLEX installation. Unfortunately, I do not know about the bottom reasons. After installing CPLEX successfully, RStudio session was aborted every time I run runCARNIVAL. I run the code in Terminal R console. Again interestingly, I had solverPath issue even though cplex exe path was correct as in:
I moved the .exe to another directory:
Finally, it run smoothly though it was computationally heavy. Next time, I will try to run on uni's HPC. All the best, Asuman |
Hi,
I am running CARNIVAL using saezlab/transcriptutorial. I tried using IBM cplex but it didn't work out and I kept getting this:
Finally, I installed lpSolve in R & made a ~/.Renviron file with
R_MAX_VSIZE=100Gb
& removed unused variable from the environment. And I got this one:Here is my R session:
I hope you can help me in that issue.
All the best,
Asuman
The text was updated successfully, but these errors were encountered: