Most viewed recipes tagged "optimisation"http://code.activestate.com/recipes/tags/optimisation/views/2012-04-27T02:10:56-07:00ActiveState Code RecipesStepping stone algorithum for solving the transhipment problem (Python) 2008-11-29T10:40:47-08:00James Coliinshttp://code.activestate.com/recipes/users/4167379/http://code.activestate.com/recipes/576575-stepping-stone-algorithum-for-solving-the-tranship/ <p style="color: grey"> Python recipe 576575 by <a href="/recipes/users/4167379/">James Coliins</a> (<a href="/recipes/tags/optimisation/">optimisation</a>). </p> <p>The transhipment problem is to minimise the cost of transporting goods between various sources and destinations.</p> Decorator for BindingConstants at compile time (Python) 2009-09-15T00:34:37-07:00Gabriel Genellinahttp://code.activestate.com/recipes/users/924636/http://code.activestate.com/recipes/576904-decorator-for-bindingconstants-at-compile-time/ <p style="color: grey"> Python recipe 576904 by <a href="/recipes/users/924636/">Gabriel Genellina</a> (<a href="/recipes/tags/optimisation/">optimisation</a>, <a href="/recipes/tags/optimization/">optimization</a>, <a href="/recipes/tags/programs/">programs</a>). </p> <p>Decorator for automatic code optimization. If a global is known at compile time, replace it with a constant. Fold tuples of constants into a single constant. Fold constant attribute lookups into a single constant.</p> <p>This is only an update of <a href="http://code.activestate.com/recipes/277940/">Recipe 277940</a>, making it compatible with Python 3. All credit must go to the original author, Raymond Hettinger.</p> Taxi Fare Splitter (Python) 2012-04-27T02:10:56-07:00James Coliinshttp://code.activestate.com/recipes/users/4167379/http://code.activestate.com/recipes/578115-taxi-fare-splitter/ <p style="color: grey"> Python recipe 578115 by <a href="/recipes/users/4167379/">James Coliins</a> (<a href="/recipes/tags/barganing/">barganing</a>, <a href="/recipes/tags/maths/">maths</a>, <a href="/recipes/tags/optimisation/">optimisation</a>). </p> <p>A method for allocating costs 'fairly' amongst a group of friends who cooperate to their mutual advantage.</p>