Find minimum number of coins that make a given value: Difference between revisions

m
mNo edit summary
Line 42:
 
optimize!(model)
println("Optimized totasltotal coins: ", objective_value(model))
for val in [ones, twos, fives, tens, twenties, fifties, onehundreds, twohundreds]
println("Value of ", string(val), " is ", value(val))
Line 48:
</lang>{{out}}
<pre>
Optimized totasltotal coins: 11.0
Value of ones is 1.0
Value of twos is 1.0
Line 58:
Value of twohundreds is 4.0
</pre>
 
 
=={{header|Ring}}==
4,108

edits