optunity icon indicating copy to clipboard operation
optunity copied to clipboard

R Example fails

Open Qunal opened this issue 9 years ago • 2 comments

I just installed Optunity on Windows 10 64 bit. Built the optunity package and installed it. I can see it in R Studio. My R version is 3.2.3 (2015-12-16)

When I run the example I get error

res <- cv.particle_swarm(cv, svm.rbf, logCost = c(-5, 5), logGamma = c(-5, 5), maximize = TRUE)
Error in if (is.na(port) || port == 0) { : 
  missing value where TRUE/FALSE `needed`

Any idea? image

I would not locate these lines in Wrapper/R scripts files Also the MATLAB 2015b example forever hangs on

%% print general manual and obtain list of solvers
solvers = optunity.manual();

Qunal avatar Sep 17 '16 14:09 Qunal

After some digging found launch function in comm.R. Its fails to find a port. I launched standalone.py from the command line as a server and tried to place that port number printed out in the R function. Not succeeding.

Qunal avatar Sep 23 '16 15:09 Qunal

I also got an error running the example with my data.

res <-cv.particle_swarm(cv,svm.rbf,logCost = c(-5, 5), logGamma = c(-5, 5), maximize = TRUE) Error in receive(cons$socket) : Optunity error: can't multiply sequence by non-int of type 'float'

Any solution? Thanks!

areeberg avatar Nov 14 '16 13:11 areeberg