FloorNet icon indicating copy to clipboard operation
FloorNet copied to clipboard

Alternatives to Gurobi

Open shubhamwagh opened this issue 6 years ago • 10 comments
trafficstars

Hello! It seems that Gurobi is being used which is not completely free. Any alternatives to evaluate the model without the use of Gurobi? It would have been better if this dependency is mentioned on the ReadMe file as well.

shubhamwagh avatar Dec 10 '18 11:12 shubhamwagh

Sorry that I am not aware of free alternatives to Gurobi. I will keep you updated once we figure out how to get rid of Gurobi. I just updated the README file. Thanks for your suggestion!

art-programmer avatar Dec 10 '18 17:12 art-programmer

@shubhamwagh I just replicate the IP optimization using a free solver. The interface is same as before. Please look at IP.py for more details.

art-programmer avatar Dec 22 '18 15:12 art-programmer

That's really good. I will definitely take a look at it after holidays.

shubhamwagh avatar Dec 31 '18 10:12 shubhamwagh

I was evaluating the performance of the trained model. I get an error NUM_ICONS is not defined in IP.py Is that the total number of icons in the icon folder?

shubhamwagh avatar Jan 10 '19 11:01 shubhamwagh

Two things not included:

  1. from floorplan_utils.py import * -> is not included in IP.py script
  2. findMatches function is not included -> which I coped it from QP.py file

Hope this helps some one who will use it. @art-programmer it will be better if you can include it in your repository these things.

shubhamwagh avatar Jan 10 '19 11:01 shubhamwagh

@art-programmer there are lot of bugs in IP.py like NUM_ROOMS has been used instead of NUM_FINAL_ROOMS and similarly for icons etc. This creates index pout of bounds errors. It will be better if you can rectify it.

shubhamwagh avatar Jan 10 '19 12:01 shubhamwagh

Fixed the bugs, atleast I am able to evaluate the trained model with the provided dataset.

shubhamwagh avatar Jan 10 '19 13:01 shubhamwagh

Fixed the bugs, atleast I am able to evaluate the trained model with the provided dataset.

Can you kindly share the bug-free IP.py file or guide me on how to solve the index pout of bounds errors?

Muhammad-Ahmad-Waseem avatar Oct 21 '20 10:10 Muhammad-Ahmad-Waseem

This worked for me:

IP.zip

and in evaluate.py I have:

import numpy as np import cv2 #default #from QP import reconstructFloorplan, findMatches from QP import findMatches from IP import reconstructFloorplan from RecordReader import * from train import *

AurelaShehu avatar Nov 12 '20 17:11 AurelaShehu

This worked for me:

IP.zip

and in evaluate.py I have:

import numpy as np import cv2 #default #from QP import reconstructFloorplan, findMatches from QP import findMatches from IP import reconstructFloorplan from RecordReader import * from train import *

Yes its working but u need install pulp 2.0 pip install pulp==2.0

KirillHiddleston avatar Apr 07 '21 09:04 KirillHiddleston