Ticket #11371 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Error in MILP documentation

Reported by: kcrisman Owned by: mvngu
Priority: minor Milestone: sage-4.7.1
Component: documentation Keywords:
Cc: ncohen Work issues:
Report Upstream: N/A Reviewers: Karl-Dieter Crisman
Authors: Nathann Cohen Merged in: sage-4.7.1.alpha3
Dependencies: Stopgaps:

Description

The (English) knapsack documentation in the thematic tutorial for MILP has an "oops" moment.

p.add_constraint(sum(weight[o] * taken[o] for o in L) <= C)

does not have the correct corresponding typeset thing, which instead has the sum of usefulness times taken less than or equal to C.

Perhaps this was introduced in the translation process? Anyway, should be easy to fix.

Attachments

trac_11371.patch Download (1016 bytes) - added by ncohen 2 years ago.

Change History

comment:1 Changed 2 years ago by ncohen

  • Status changed from new to needs_review
  • Authors set to Nathann Cohen

That's perfectly right ^^;

The typeset version of the LP did not even depends on the weights....Fixed !

And there was also a variable named "divers" which I guess does not mean anything outside of french ... Thanks ! :-)

Nathann

Changed 2 years ago by ncohen

comment:2 follow-up: ↓ 3 Changed 2 years ago by kcrisman

Don't worry about the divers; in English, it's an old spelling of "diverse", or various - presumably from the time that Old/Middle? French was busy turning Anglo-Saxon into Middle English... :)

comment:3 in reply to: ↑ 2 Changed 2 years ago by ncohen

Replying to kcrisman:

Don't worry about the divers; in English, it's an old spelling of "diverse", or various - presumably from the time that Old/Middle? French was busy turning Anglo-Saxon into Middle English... :)

:-D

Good to know !

Then, do you think I should turn it back to "divers", is "random_stuff_" better or worse to an english tongue ? :-)

Nathann

comment:4 Changed 2 years ago by kcrisman

  • Status changed from needs_review to positive_review
  • Reviewers set to Karl-Dieter Crisman

No, random stuff is definitely better than 'divers'! Just sayin' that it was at least plausible to a sufficiently well-read English speaker.

Applies fine and looks fine and tests fine. Positive review.

comment:5 Changed 2 years ago by jdemeyer

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.7.1.alpha3
Note: See TracTickets for help on using tickets.