#12220: Updated CBC spkg
----------------------------------+-----------------------------------------
Reporter: ncohen | Owner: ncohen
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.8
Component: linear programming | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Nathann Cohen
Merged: | Dependencies:
----------------------------------+-----------------------------------------
Comment(by john_perry):
Replying to [comment:7 ncohen]:
> > There is, indeed, no `librt` in the directory specified. Is that
supposed to be linked?
>
> I must have spent 2 or 3 hours finding out that this solved a bug on my
own machine.
`8-O`
> Without this librt flag, any call to the library immediately fails -_-
`8-O 8-O`
> Well... Then remove it and try again, perhaps it will work on your
computer. On mine, it produced errors like "can not find get_clock" or
something like that.
For once, I figured out on my own what to remove it from (please tell me
it's the file, `module_list.py`). It compiled fine, and I was able to run
one of my favorite LPs:
{{{
sage: lp = MixedIntegerLinearProgram(solver='Coin')
sage: lp.add_constraint(lp[0]-lp[1],min=1)
sage: lp.add_constraint(2*lp[0]-3*lp[1],min=1)
sage: lp.add_constraint(lp[0],min=1)
sage: lp.add_constraint(lp[1],min=1)
sage: lp.solve()
0.0
sage: lp.get_values([lp[0],lp[1]])
[2.0, 1.0]
}}}
It's a regular, happy camper. I haven't tested it much, but so far it
seems to be doing just fine.
Out of curiosity, ''are'' those `ctypedef`s supposed to go in a certain
order? Cython documentation doesn't seem clear on this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12220#comment:8>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.