Git Product home page Git Product logo

operational-research-uwm's Introduction

Operational Research UWM

Task 1 - Basic Problem

Linear Programming Problem Formulation

Objective function:

$$ \max Z = x_1 + 2x_2 $$

Subject to:

  • $x_1 + 2x_2 \leq 10$
  • $x_1 + x_2 \geq 1$
  • $4 \geq x_2 \geq 1$
  • $x_1, x_2 \geq 0$

Plotted solution: xd

Compared to exam: I've achieved the same results.

Task 2 - Transportation Problem

The problem objective is to minimize the total shipping cost to all customers from all sources.

$$\mbox{minimize:}\quad \mbox{Cost} = \sum_{c \in Customers}\sum_{s \in Sources} T[c,s] x[c,s]$$

Shipments from all sources can not exceed the manufacturing capacity of the source.

$$\sum_{c \in Customers} x[c,s] \leq \mbox{Supply}[s] \qquad \forall s \in Sources$$

Shipments to each customer must satisfy their demand.

$$\sum_{s\in Sources} x[c,s] = \mbox{Demand}[c] \qquad \forall c \in Customers$$

Total Shipping Costs =  670.0

Shipping Table:
Ship from  Supplier1  to  Customer3 : 10.0
Ship from  Supplier1  to  Customer4 : 70.0
Ship from  Supplier2  to  Customer2 : 60.0
Ship from  Supplier2  to  Customer3 : 40.0
Ship from  Supplier2  to  Fictional_Customer : 40.0
Ship from  Supplier3  to  Customer1 : 50.0
Ship from  Supplier3  to  Customer2 : 20.0

Compared to exam: I've achieved the same results.

Sources

operational-research-uwm's People

Contributors

ktfish avatar

Stargazers

 avatar  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.