h-g-s / lp

Simple C/C++ interface to COIN-OR CBC, CPLEX, GLPK and GUROBI, with some interesting features
Eclipse Public License 1.0
8 stars 0 forks source link

How hard is to extend LP so it can use coin-CLP as the LP solver? #2

Open migp11 opened 5 years ago

migp11 commented 5 years ago

Hi,

First, Great project! Thanks! Second, this is not an issue but a question.

My history. I'm currently developing some systems biology simulation which require the resolution of LP. Usually I use cplex, gurobi or glpk through a python general interface. But this particular project I'm referring to, is coded in C++.

After reviewing some open source LP libraries in C++ I started to use Clp. However I would like to use a more abstract interface that allow to use different solver under the hood, and after some more exploration I founded your project. I haven't tested yet, but it's looks like it will perfectly fit my needs.

The question. How hard is to extend the project so it can also use CLP as a solver? Thanks! Best Miguel

h-g-s commented 5 years ago

Hi Leon,

Hi,

First, Great project! Thanks! Good that it was usesul :) Second, this is not an issue but a question.

My history. I'm currently developing some systems biology simulation which require the resolution of LP. Usually I use cplex, gurobi or glpk through a python general interface. But this particular project I'm referring to, is coded in C++.

After reviewing some open source LP libraries in C++ I started to use Clp. However I would like to use a more abstract interface that allow to use different solver under the hood, and after some more exploration I founded your project. I haven't tested yet, but it's looks like it will perfectly fit my needs.

The question. How hard is to extend the project so it can also use CLP as a solver? It already uses CLP and CBC. You just have to compile with -DCBC (having CBC installed, which comes with CLP), and it will use CLP as LP solver.

BTW, I'm also involved in the development of CBC/CLP, if you have any problems please contact me.

Cheers,

Haroldo

Thanks! Best Miguel

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute thethread.[AB4VZOWVHFV67GZY35K5E73P5JARDA5CNFSM4H4UVATKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4WLL DQ.gif]

migp11 commented 5 years ago

Hi Haroldo,

Thanks for your answer. Ok, Cbc include Clp. It make sense ;-) I was only using CLP so I didn't know what CBC exactly was

I just found out that for for my particular LP problem glpk is faster than CLP So I think I will use GLPK as the default solver instead of CLP

Have you some examples on how compile using LP together with GLPK?

I've found that LP bring some .sh files to install CPLEX , Gurobi and CBC Do I have to install nstallCPLEX.sh if I want to compile using CLPEX instead of GLPK.

Thank you very much for your help

BTW, I'm Miguel, Leon is part of my last name ;-)

h-g-s commented 4 years ago

Hi Miguel,

Sorry for the delay in answering. I'm quite surprised that GLPK is faster in your application, this is very unusual. Could you share some .mps or .lp files with me ? I would like to check if with some different parameter setting the result is different.

To compile LP with GLPK just add -DGLPK .

Cheers