Allocation algorithm using PythonCalling an external command in PythonWhat are metaclasses in Python?Finding the index of an item given a list containing it in PythonWhat is the difference between Python's list methods append and extend?What is the best algorithm for an overridden System.Object.GetHashCode?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonDoes Python have a string 'contains' substring method?What is the optimal algorithm for the game 2048?
Caught 2 students cheating together on the final exam that I proctored
What could a self-sustaining lunar colony slowly lose that would ultimately prove fatal?
Any advice on creating fictional locations in real places when writing historical fiction?
Why would Ryanair allow me to book this journey through a third party, but not through their own website?
Should one buy new hardware after a system compromise?
Construct a word ladder
What to do when you've set the wrong ISO for your film?
Could a 19.25mm revolver actually exist?
using Leibniz rule to solve definite integral
Why didn't Thanos use the Time Stone to stop the Avengers' plan?
How to use libraries with delays inside within a time critical STM32 HAL application?
Is "cool" appropriate or offensive to use in IMs?
Why does this if-statement combining assignment and an equality check return true?
What was the idiom for something that we take without a doubt?
What is the object moving across the ceiling in this stock footage?
Why did David Cameron offer a referendum on the European Union?
Is the Indo-European language family made up?
Who will lead the country until there is a new Tory leader?
Would Jetfuel for a modern jet like an F-16 or a F-35 be producable in the WW2 era?
Count Even Digits In Number
Looking for a soft substance that doesn't dissolve underwater
Is it possible to play as a necromancer skeleton?
Why didn't Project Mercury advance to an orbital flight on their second mission?
Compaq Portable vs IBM 5155 Portable PC
Allocation algorithm using Python
Calling an external command in PythonWhat are metaclasses in Python?Finding the index of an item given a list containing it in PythonWhat is the difference between Python's list methods append and extend?What is the best algorithm for an overridden System.Object.GetHashCode?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonDoes Python have a string 'contains' substring method?What is the optimal algorithm for the game 2048?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am trying to create a model in which manufacturers can post a load which needs to be shipped and a transporter can post that his truck is going from point A to point B. If the Origin, Destination and load(to be transported and truck capacity) matches then both of them are notified like a tinder match.
I have tried researching on automatic matching but the closest I come to is the Hungarian Algorithm that solves the assignment problem, but I am not so sure if it's the right direction or not.
In the model I have already created input forms for both sections i.e. manufacturers and transporters and the data is saved in a Database. I am thinking of applying a trigger function which rechecks for a best match everytime a new entry comes in Database
Here is the Data from both input forms:
Manufacturer
M_ID From To M_Type T_Type T_Length T_Weight #Trucks Loading_Time
1025 A B Boxes Open 12-Tyre 22 3 27-March-2019 6:00PM
1029 C D Cylinders Trailer HIGH 23 2 28-March-2019 6:00PM
1989 G H Scrap Open 14-Tyre 25 5 26-March-2019 9:00PM
Transporter
T_ID From To T_Type T_Length T_Weight #Trucks Price
6569 A B Open 12-Tyre 22 5 1500
8658 G H Open 14-Tyre 25 10 1200
4595 A B Open 12-Tyre 22 3 1000
1252 A B Trailer Low 28 5 1800
We can see that Transporter 4595 is the best match for Manufacturer 1025 and Transporter 6569 is the second best. I want to match both of them and also show the manufacturer that he has another option too.
python database algorithm computer-science
add a comment |
I am trying to create a model in which manufacturers can post a load which needs to be shipped and a transporter can post that his truck is going from point A to point B. If the Origin, Destination and load(to be transported and truck capacity) matches then both of them are notified like a tinder match.
I have tried researching on automatic matching but the closest I come to is the Hungarian Algorithm that solves the assignment problem, but I am not so sure if it's the right direction or not.
In the model I have already created input forms for both sections i.e. manufacturers and transporters and the data is saved in a Database. I am thinking of applying a trigger function which rechecks for a best match everytime a new entry comes in Database
Here is the Data from both input forms:
Manufacturer
M_ID From To M_Type T_Type T_Length T_Weight #Trucks Loading_Time
1025 A B Boxes Open 12-Tyre 22 3 27-March-2019 6:00PM
1029 C D Cylinders Trailer HIGH 23 2 28-March-2019 6:00PM
1989 G H Scrap Open 14-Tyre 25 5 26-March-2019 9:00PM
Transporter
T_ID From To T_Type T_Length T_Weight #Trucks Price
6569 A B Open 12-Tyre 22 5 1500
8658 G H Open 14-Tyre 25 10 1200
4595 A B Open 12-Tyre 22 3 1000
1252 A B Trailer Low 28 5 1800
We can see that Transporter 4595 is the best match for Manufacturer 1025 and Transporter 6569 is the second best. I want to match both of them and also show the manufacturer that he has another option too.
python database algorithm computer-science
Why is this tagged as python? It seems more like a database or CS question.
– Niayesh Isky
Mar 24 at 4:16
add a comment |
I am trying to create a model in which manufacturers can post a load which needs to be shipped and a transporter can post that his truck is going from point A to point B. If the Origin, Destination and load(to be transported and truck capacity) matches then both of them are notified like a tinder match.
I have tried researching on automatic matching but the closest I come to is the Hungarian Algorithm that solves the assignment problem, but I am not so sure if it's the right direction or not.
In the model I have already created input forms for both sections i.e. manufacturers and transporters and the data is saved in a Database. I am thinking of applying a trigger function which rechecks for a best match everytime a new entry comes in Database
Here is the Data from both input forms:
Manufacturer
M_ID From To M_Type T_Type T_Length T_Weight #Trucks Loading_Time
1025 A B Boxes Open 12-Tyre 22 3 27-March-2019 6:00PM
1029 C D Cylinders Trailer HIGH 23 2 28-March-2019 6:00PM
1989 G H Scrap Open 14-Tyre 25 5 26-March-2019 9:00PM
Transporter
T_ID From To T_Type T_Length T_Weight #Trucks Price
6569 A B Open 12-Tyre 22 5 1500
8658 G H Open 14-Tyre 25 10 1200
4595 A B Open 12-Tyre 22 3 1000
1252 A B Trailer Low 28 5 1800
We can see that Transporter 4595 is the best match for Manufacturer 1025 and Transporter 6569 is the second best. I want to match both of them and also show the manufacturer that he has another option too.
python database algorithm computer-science
I am trying to create a model in which manufacturers can post a load which needs to be shipped and a transporter can post that his truck is going from point A to point B. If the Origin, Destination and load(to be transported and truck capacity) matches then both of them are notified like a tinder match.
I have tried researching on automatic matching but the closest I come to is the Hungarian Algorithm that solves the assignment problem, but I am not so sure if it's the right direction or not.
In the model I have already created input forms for both sections i.e. manufacturers and transporters and the data is saved in a Database. I am thinking of applying a trigger function which rechecks for a best match everytime a new entry comes in Database
Here is the Data from both input forms:
Manufacturer
M_ID From To M_Type T_Type T_Length T_Weight #Trucks Loading_Time
1025 A B Boxes Open 12-Tyre 22 3 27-March-2019 6:00PM
1029 C D Cylinders Trailer HIGH 23 2 28-March-2019 6:00PM
1989 G H Scrap Open 14-Tyre 25 5 26-March-2019 9:00PM
Transporter
T_ID From To T_Type T_Length T_Weight #Trucks Price
6569 A B Open 12-Tyre 22 5 1500
8658 G H Open 14-Tyre 25 10 1200
4595 A B Open 12-Tyre 22 3 1000
1252 A B Trailer Low 28 5 1800
We can see that Transporter 4595 is the best match for Manufacturer 1025 and Transporter 6569 is the second best. I want to match both of them and also show the manufacturer that he has another option too.
python database algorithm computer-science
python database algorithm computer-science
edited Mar 25 at 7:41
Rahul Sharma
asked Mar 24 at 3:50
Rahul SharmaRahul Sharma
161115
161115
Why is this tagged as python? It seems more like a database or CS question.
– Niayesh Isky
Mar 24 at 4:16
add a comment |
Why is this tagged as python? It seems more like a database or CS question.
– Niayesh Isky
Mar 24 at 4:16
Why is this tagged as python? It seems more like a database or CS question.
– Niayesh Isky
Mar 24 at 4:16
Why is this tagged as python? It seems more like a database or CS question.
– Niayesh Isky
Mar 24 at 4:16
add a comment |
1 Answer
1
active
oldest
votes
This problem could be seen as a directed graph, where an edge from a vertex A
to another vertex B
represents the truck going from A
to B
(or the manufacturer wanting the load to get transported from A
to B
), and weight of the edge could be used to represent the amount of load (or truck capacity).
You could use an adjacency matrix each for both manufacturer and transporter. Each time a new entry is filled into either of the matrix (let's say manufacturer's matrix), the corresponding entry is checked is checked in the other matrix (transporter's matrix), and the loads are also compared to see if there is a match.
```python
class trans_struct(T_ID, T_Type, T_Length, Trucks, Price):
def __init__(self, T_ID, T_Type, T_Length, Trucks, Price)
self.T_ID = T_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
class man_struct(M_ID, M_Type, T_Length, Trucks, Loading_Time):
def __init__(self, M_ID, M_Type, T_Length, Trucks, Loading_Time)
self.M_ID = M_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
dicti = A:0, B:1, C:2 #dictionary to map places to integeral indexes
num_places = len(dicti)
trans_mat = [[[] for __ in range(num_places)] for _ in range(num_places)] #initialize transport matrix to a default value
manf_mat = [[[] for __ in range(num_places)] for _ in range(num_places)]
def manf_input():
#take input for manufacturer's data in this func into the structure object
manf_mat[dicti[A]][dicti[B]].append((struct.T_Weight, struct)) #assuming manufacturer wanted to move goods from A to B
check_for_match(A, B) #function to compare corresponding matrix entries each time a new entry is inserted
def check_for_match(A, B, T_Length):
for entry in trans_mat[dicti[A]][dicti[B]]:
if entry[0]>= T_Length:
#match found display required info by retreiving from the structure
#
```
I have written only some functions here. I've written only the function which checks when a new entry is created for a manufacturer, but not vice-versa. You could add additional constraints like date, time etc.
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320575%2fallocation-algorithm-using-python%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This problem could be seen as a directed graph, where an edge from a vertex A
to another vertex B
represents the truck going from A
to B
(or the manufacturer wanting the load to get transported from A
to B
), and weight of the edge could be used to represent the amount of load (or truck capacity).
You could use an adjacency matrix each for both manufacturer and transporter. Each time a new entry is filled into either of the matrix (let's say manufacturer's matrix), the corresponding entry is checked is checked in the other matrix (transporter's matrix), and the loads are also compared to see if there is a match.
```python
class trans_struct(T_ID, T_Type, T_Length, Trucks, Price):
def __init__(self, T_ID, T_Type, T_Length, Trucks, Price)
self.T_ID = T_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
class man_struct(M_ID, M_Type, T_Length, Trucks, Loading_Time):
def __init__(self, M_ID, M_Type, T_Length, Trucks, Loading_Time)
self.M_ID = M_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
dicti = A:0, B:1, C:2 #dictionary to map places to integeral indexes
num_places = len(dicti)
trans_mat = [[[] for __ in range(num_places)] for _ in range(num_places)] #initialize transport matrix to a default value
manf_mat = [[[] for __ in range(num_places)] for _ in range(num_places)]
def manf_input():
#take input for manufacturer's data in this func into the structure object
manf_mat[dicti[A]][dicti[B]].append((struct.T_Weight, struct)) #assuming manufacturer wanted to move goods from A to B
check_for_match(A, B) #function to compare corresponding matrix entries each time a new entry is inserted
def check_for_match(A, B, T_Length):
for entry in trans_mat[dicti[A]][dicti[B]]:
if entry[0]>= T_Length:
#match found display required info by retreiving from the structure
#
```
I have written only some functions here. I've written only the function which checks when a new entry is created for a manufacturer, but not vice-versa. You could add additional constraints like date, time etc.
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
add a comment |
This problem could be seen as a directed graph, where an edge from a vertex A
to another vertex B
represents the truck going from A
to B
(or the manufacturer wanting the load to get transported from A
to B
), and weight of the edge could be used to represent the amount of load (or truck capacity).
You could use an adjacency matrix each for both manufacturer and transporter. Each time a new entry is filled into either of the matrix (let's say manufacturer's matrix), the corresponding entry is checked is checked in the other matrix (transporter's matrix), and the loads are also compared to see if there is a match.
```python
class trans_struct(T_ID, T_Type, T_Length, Trucks, Price):
def __init__(self, T_ID, T_Type, T_Length, Trucks, Price)
self.T_ID = T_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
class man_struct(M_ID, M_Type, T_Length, Trucks, Loading_Time):
def __init__(self, M_ID, M_Type, T_Length, Trucks, Loading_Time)
self.M_ID = M_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
dicti = A:0, B:1, C:2 #dictionary to map places to integeral indexes
num_places = len(dicti)
trans_mat = [[[] for __ in range(num_places)] for _ in range(num_places)] #initialize transport matrix to a default value
manf_mat = [[[] for __ in range(num_places)] for _ in range(num_places)]
def manf_input():
#take input for manufacturer's data in this func into the structure object
manf_mat[dicti[A]][dicti[B]].append((struct.T_Weight, struct)) #assuming manufacturer wanted to move goods from A to B
check_for_match(A, B) #function to compare corresponding matrix entries each time a new entry is inserted
def check_for_match(A, B, T_Length):
for entry in trans_mat[dicti[A]][dicti[B]]:
if entry[0]>= T_Length:
#match found display required info by retreiving from the structure
#
```
I have written only some functions here. I've written only the function which checks when a new entry is created for a manufacturer, but not vice-versa. You could add additional constraints like date, time etc.
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
add a comment |
This problem could be seen as a directed graph, where an edge from a vertex A
to another vertex B
represents the truck going from A
to B
(or the manufacturer wanting the load to get transported from A
to B
), and weight of the edge could be used to represent the amount of load (or truck capacity).
You could use an adjacency matrix each for both manufacturer and transporter. Each time a new entry is filled into either of the matrix (let's say manufacturer's matrix), the corresponding entry is checked is checked in the other matrix (transporter's matrix), and the loads are also compared to see if there is a match.
```python
class trans_struct(T_ID, T_Type, T_Length, Trucks, Price):
def __init__(self, T_ID, T_Type, T_Length, Trucks, Price)
self.T_ID = T_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
class man_struct(M_ID, M_Type, T_Length, Trucks, Loading_Time):
def __init__(self, M_ID, M_Type, T_Length, Trucks, Loading_Time)
self.M_ID = M_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
dicti = A:0, B:1, C:2 #dictionary to map places to integeral indexes
num_places = len(dicti)
trans_mat = [[[] for __ in range(num_places)] for _ in range(num_places)] #initialize transport matrix to a default value
manf_mat = [[[] for __ in range(num_places)] for _ in range(num_places)]
def manf_input():
#take input for manufacturer's data in this func into the structure object
manf_mat[dicti[A]][dicti[B]].append((struct.T_Weight, struct)) #assuming manufacturer wanted to move goods from A to B
check_for_match(A, B) #function to compare corresponding matrix entries each time a new entry is inserted
def check_for_match(A, B, T_Length):
for entry in trans_mat[dicti[A]][dicti[B]]:
if entry[0]>= T_Length:
#match found display required info by retreiving from the structure
#
```
I have written only some functions here. I've written only the function which checks when a new entry is created for a manufacturer, but not vice-versa. You could add additional constraints like date, time etc.
This problem could be seen as a directed graph, where an edge from a vertex A
to another vertex B
represents the truck going from A
to B
(or the manufacturer wanting the load to get transported from A
to B
), and weight of the edge could be used to represent the amount of load (or truck capacity).
You could use an adjacency matrix each for both manufacturer and transporter. Each time a new entry is filled into either of the matrix (let's say manufacturer's matrix), the corresponding entry is checked is checked in the other matrix (transporter's matrix), and the loads are also compared to see if there is a match.
```python
class trans_struct(T_ID, T_Type, T_Length, Trucks, Price):
def __init__(self, T_ID, T_Type, T_Length, Trucks, Price)
self.T_ID = T_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
class man_struct(M_ID, M_Type, T_Length, Trucks, Loading_Time):
def __init__(self, M_ID, M_Type, T_Length, Trucks, Loading_Time)
self.M_ID = M_ID
self.T_Length = T_Length
self.T_Trucks = T_Trucks
self.T_Type = T_Type
self.T_Price = T_Price
dicti = A:0, B:1, C:2 #dictionary to map places to integeral indexes
num_places = len(dicti)
trans_mat = [[[] for __ in range(num_places)] for _ in range(num_places)] #initialize transport matrix to a default value
manf_mat = [[[] for __ in range(num_places)] for _ in range(num_places)]
def manf_input():
#take input for manufacturer's data in this func into the structure object
manf_mat[dicti[A]][dicti[B]].append((struct.T_Weight, struct)) #assuming manufacturer wanted to move goods from A to B
check_for_match(A, B) #function to compare corresponding matrix entries each time a new entry is inserted
def check_for_match(A, B, T_Length):
for entry in trans_mat[dicti[A]][dicti[B]]:
if entry[0]>= T_Length:
#match found display required info by retreiving from the structure
#
```
I have written only some functions here. I've written only the function which checks when a new entry is created for a manufacturer, but not vice-versa. You could add additional constraints like date, time etc.
edited Mar 25 at 18:17
answered Mar 24 at 4:16
virmis_007virmis_007
79114
79114
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
add a comment |
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
Hi Virmis_007, I partially got what you are trying to say but could you explain it with an example ? or would it help if I put mock data in the question?
– Rahul Sharma
Mar 24 at 5:31
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
@RahulSharma Yes I could try explaining it more with dummy data.
– virmis_007
Mar 24 at 6:01
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
I have made some changes could you please go through the question again and see if the matrix works or not ?
– Rahul Sharma
Mar 25 at 7:42
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
@RahulSharma edited the answer.
– virmis_007
Mar 25 at 18:18
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320575%2fallocation-algorithm-using-python%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why is this tagged as python? It seems more like a database or CS question.
– Niayesh Isky
Mar 24 at 4:16