Every time you rebuild Sage (i.e., sage -br), a recompilation should
happen. However, it shouldn't happen every time you start up sage. Can
you post the output of what you are seeing?
> - The small demo program interfaces only with a single variable. It is
> possible to pass vectors and matrices to the library? How is that
> done? Is
> there documentation on this? There is for example the integration
> between
> Sage and Maxima. It it possible to the same with lp_solve?
Since lp_solve is a C library, probably the easiest way to interface
with it is to write a Cython interface. A Cython function would easily
be able to take a vector or matrix and pass a C array to lp_solve, for
example. I think the place to look for examples of interfaces to C
libraries is in the sage/devel/sage/sage/libs directory. Someone else
will have to chime in as to which interface might be the most ideal
example of a C library wrapper.
I also notice above that you have an interface for python. You could
(probably more immediately) just write a Sage function that calls that
python function. However, writing a Cython wrapper will probably yield
faster results in the end, and shouldn't be too hard.
Thanks for your work!
Jason
--
Jason Grout
See also http://wiki.sagemath.org/optimization for plans to include solvers
in Sage. I've just read a benchmark paper comparing lp_solve, glpk and
Coin-Or's clp, the last always winning by 1 or 2 orders of magnitude in
computation time, but it's from 2006, so maybe a bit dated.
--
Robert Schwarz <ma...@rschwarz.net>
Get my public key at http://rschwarz.net/key.asc
I missed that. Where is a readme or something what explains the basic commands
On Sat, Apr 11, 2009 at 11:25 PM, Stephen Hartke <har...@gmail.com> wrote:
> I have made an spkg for lp_solve and posted to sage-devel a message in
> September 2008 about including it into Sage. I did not receive any positive
> responses. The spkg and a demo file domination.py can be downloaded at:
> http://www.math.unl.edu/~shartke2/files/
with examples?
> Since lp_solve is licensed under GPLv2.1, it can be included in Sage. BothPlease explain these!
> COIN (under the CPL) and GPLK (under GPLv3) have license issues. If we want
Thanks. It is the file lp_solve_5.5.0.14_doc.tar.gz. (Warning: It does
not extract into
its own subdirectory, so you have to create a subdirectory doc of lp_solve*
and copy it there before extracting it.) There is no index.html file.
The main file
appears to be contents.htm.
Uncompressed the documention is <5M. Uncompressed the source code is
<4M.
>
> Peter
>
...
>>
>> Is the documentationhttp://lpsolve.sourceforge.net/5.5/index.htm
>> licensed GFDL or what? (Or is the user expected to have an internet connection?)
>> I did not see it in the download (though it says on the pagehttp://lpsolve.sourceforge.net/5.5/Intro.htm
>> that lp_solve "It contains full source, examples and manuals."
There is no LICENSE or COPYING file or any indiction of what the distribution
license of the documentation is.
>>
>>
>>
William