[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] different solutions for same code
From: |
xypron |
Subject: |
Re: [Help-glpk] different solutions for same code |
Date: |
Sun, 18 Oct 2009 10:34:28 -0700 (PDT) |
Looking at
https://projects.coin-or.org/Osi/browser/trunk/Osi/src/OsiGlpk/OsiGlpkSolverInterface.cpp
the OSI interface to GLPK does not match the current API. This has been
adressed in
https://projects.coin-or.org/Osi/ticket/71
but the ticket has not been resolved since 2008. You might enquire COIN-OR
on this.
You could patch OsiGlpkSolverInterface.cpp for your purpose.
You can directly interface your C++ code and GLPK using the GLPK API
described in
doc/glpk.pdf of the source distribution. The coding of the standalone solver
is in src/glpapi19.c
Best regards
Xypron
RenB wrote:
>
> I also tried to use Glpk
> 1) as a standalone solver from the command line, and
> 2) as a library called from my C++ code (after modelling an ILP with
> FlopCpp and using Osi),
> ...
> So, my question is: is there a way of creating an ILP model with
> FlopCpp, and then choosing algorithmic options (cuts, presolve, branch,
> etc.) and calling Glpk from my C++ code as it would be from the
> command line?
>
--
View this message in context:
http://www.nabble.com/different-solutions-for-same-code-tp25245249p25948703.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.