Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#11958 closed defect (fixed)

cplex needs another symbolic link

Reported by: jason Owned by: tbd
Priority: major Milestone: sage-5.0
Component: linear programming Keywords: Cernay2012
Cc: ncohen Merged in: sage-5.0.beta12
Authors: Nathann Cohen, Jason Grout Reviewers: David Coudert
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

In order to get a current CPLEX to work with Sage, I had to add one more symbolic link to SAGE_ROOT/local/include/ than the directions at http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html#installing-cplex indicated:

ln -s /path/to/include/cpxconst.h .

Without this, sage -b complained about that file missing. With this new symbolic link, sage -b succeeds and I can solve an example problem with cplex.

So the docs probably should be updated.

Attachments (1)

trac_11958.patch (779 bytes) - added by ncohen 7 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 8 years ago by ncohen

O_o

I have been using CPLEX for (almost) years and I never met that. O_o

Which kind of version of it do you use ? O_o

Nathann

comment:2 Changed 8 years ago by jason

IBM ILOG CPLEX Optimization Studio Academic Research Edition
Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 12.3.0.0
  with Simplex, Mixed Integer & Barrier Optimizers
5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55
Copyright IBM Corp. 1988, 2011.  All Rights Reserved.

comment:3 Changed 8 years ago by ncohen

Sigh... I'm using version 12.1.0 :-)

Nathann

comment:4 Changed 8 years ago by jdemeyer

  • Milestone sage-4.7.3 deleted

Milestone sage-4.7.3 deleted

Changed 7 years ago by ncohen

comment:5 Changed 7 years ago by ncohen

  • Component changed from PLEASE CHANGE to linear programming
  • Milestone set to sage-5.0
  • Status changed from new to needs_review

Here it is ! Sorry for the delay ! :-)

Nathann

comment:6 Changed 7 years ago by ncohen

  • Keywords Cernay2012 added

comment:7 Changed 7 years ago by dcoudert

  • Reviewers set to David Coudert
  • Status changed from needs_review to positive_review

Hello,

I'm able to install correctly the patch on sage-5.0.beta9, and it is very useful when you want to use cplex 12.4.

It took me some time to understand that I add to type sage -docbuild thematic_tutorials html for building the doc.

Thanks for the patch!

David.

comment:8 Changed 7 years ago by jdemeyer

  • Authors set to Nathann Cohen

comment:9 Changed 7 years ago by jdemeyer

  • Merged in set to sage-5.0.beta12
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:10 follow-up: Changed 7 years ago by jason

  • Authors changed from Nathann Cohen to Nathann Cohen, Jason Grout

I hope it's not too selfish to add myself as an author, as it did take a (short) while to track down the problem and solution...

comment:11 in reply to: ↑ 10 Changed 7 years ago by ncohen

I hope it's not too selfish to add myself as an author, as it did take a (short) while to track down the problem and solution...

Ahahah, be welcome in the "authors" field, there's room for everybody here so let us have a drink :-)

Anyway there clearly was more work involved in finding the bug than in writing this patch !

Nathann

Note: See TracTickets for help on using tickets.