zhan-gao / classo

A package implements Classifier-Lasso
10 stars 7 forks source link

Encounter errors using functions 'PLS.mosek' and "PLS.nlopt" #3

Closed zheng017 closed 1 year ago

zheng017 commented 1 year ago

I generate data by DGP 1 described in Su, Shi and Phillips (2016) and it works well using "PLS.cvxr". However, when I use "PLS.mosek" with the code pls_out <- PLS.mosek(n, tt, y, x, K = 3, lambda = lambda) , it raise error: Error in a.out[k, ] <- mosek.out$alpha : number of items to replace is not a multiple of replacement length

When I use "PLS.nlopt" with pls_out <- PLS.nlopt(n, tt, y, x, K = 3, lambda = lambda) , it raise error: Error in eval_f(x0, ...) : object 'p' not found

I have checked that the package "Rmosel" and "nloptr" are rightly installed.

mosek_version() [1] "MOSEK 10.0.46"

zheng017 commented 1 year ago

Sorry to bother, I have found the answer. I forget to place the license file of "mosek" to the right place so the "mosek" function did not work.