Anonymous user
Knapsack problem/Continuous: Difference between revisions
m
→{{header|Ursala}}: simplified a little
m (changed a comment) |
m (→{{header|Ursala}}: simplified a little) |
||
Line 380:
[http://en.wikipedia.org/wiki/Linear_programming linear programming] problem and handing it off to an external library (which will be either [http://sourceforge.net/projects/lpsolve lpsolve] or
[http://www.gnu.org/software/glpk/glpk.html glpk] depending on the run-time system configuration).
▲<lang Ursala>#import std
#import lin
Line 388 ⟶ 386:
<
'beef
'pork
'ham
'greaves': (2.4,45.0),
'flitch ':
'brawn
'welt
'salami ':
'sausage': (5.9,98.0)>
Line 408 ⟶ 406:
#cast %em
main =
output:
<pre><
'brawn ': 2.500000e+00,
'greaves': 2.400000e+00,
|