#13698: Access to graph routines of the GLPK
------------------------------------------------------------------------+---
Reporter: christiankuper |
Owner: jason, jkantor
Type: enhancement |
Status: new
Priority: major |
Milestone: sage-5.9
Component: numerical |
Resolution:
Keywords: out-of-kilter, minflow, maxflow, critical path, GLPK |
Work issues:
Report Upstream: N/A |
Reviewers: Nathann Cohen
Authors: Christian Kuper |
Merged in:
Dependencies: #12415 |
Stopgaps:
------------------------------------------------------------------------+---
Comment (by christiankuper):
The only "unique" aspect in the method causing the error is the pointers
passed to the GLPK library function. This is the only function where the
pointer of two parameters is defined like "x*sizeof(double) +
y*sizeof(long)" - and these two values are causing the errors. All other
pointers are defined like "x*sizeof(double)". Therefore I suspect that
"sizeof(long)" is causing the errors.
I therefore redefined the "c_v_data" structure so the <long> value is the
last value. This now allows all pointers to be defined as
"x*sizeof(double)", i.e. without sizeof long. In addition defined the
field in the data structure as "long" and not as "int".
Hopefully this removes the failure in the test on a Solaris. Due to the
lack of a solaris machine I cannot verify this myself, therefore I tried
to explain the reasoning behind the changes I did.
Christian
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13698#comment:49>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.