Coder Social home page Coder Social logo

pulp-t-shirt-optimization's Introduction

PuLP-T-Shirt-Optimization

An example of a Pulp maximized optimization problem You make custom T-shirts with inspirational sayings on them. You just found out about a community flea market sale that is starting tomorrow. You have just 8 hours to prepare product for this sale. You start with a plain white T-shirt. This is your most popular color. But you can dye the white T-shirt blue, yellow, or red—but only one shirt at a time. Your current inventory is 50 white T-shirts and you have enough dye to make 12 red shirts, 10 yellow shirts, and 15 blue shirts. You take the various color shirts to the sale and then stencil on an inspirational saying—whatever the customer wants up to 35 characters.

Based on experience, you know that at a sale like this, you will be able to sell all 50 shirts. Use the data in the table below to determine how many shirts of each color you should bring to the sale to maximize your profits.

image The problem was solved in Python using the PuLP module.

pulp-t-shirt-optimization's People

Contributors

very-inky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.