euba / BacArena

agent based modelling
GNU General Public License v3.0
26 stars 11 forks source link

Install Dependencies #153

Open maringos opened 5 years ago

maringos commented 5 years ago

Dear All,

I would like to ask you for changing the installation dependencies of BacArena so that glpkAPI is not required if other solvers are available (e.g. cplexAPI).

Kind Regards, Georgios

silvtal commented 2 years ago

Second this

jotech commented 2 years ago

as far as I know this can't be done for a cran package and since a solver is mandatory for bacarena I would rather keep the dependency to a freely available glpk than force people to got for a commercial one like cplex.

may I ask what the problem with glpk is? If another solver is available this can easily changed by SYBIL_SETTINGS("SOLVER", "cplexAPI")

silvtal commented 2 years ago

That actually makes sense, if it's not possible to do then I definitely understand

My problem is during the installation of glpkAPI on a cluster. I specified the lib and include folders for glpk but it still says they are not there. It's a bit furstrating because I won't even use it.

But I understand that's another issue. Thank you for your answer!

jotech commented 2 years ago

I see, if the glpklib is installed have you tried

wget https://cran.r-project.org/src/contrib/glpkAPI_1.3.2.tar.gz
R CMD INSTALL --configure-args="--enable-gmp=no" glpkAPI_1.3.2.tar.gz

?

jotech commented 2 years ago

as a sidenote: you need libglpk-dev on debian/ubuntu or glpk-devel on centos/fedora