Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternatives to Gurobi #18

Open
shubhamwagh opened this issue Dec 10, 2018 · 10 comments
Open

Alternatives to Gurobi #18

shubhamwagh opened this issue Dec 10, 2018 · 10 comments

Comments

@shubhamwagh
Copy link

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.

@art-programmer
Copy link
Owner

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
Copy link
Owner

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

@shubhamwagh
Copy link
Author

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

@shubhamwagh
Copy link
Author

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
Copy link
Author

shubhamwagh commented Jan 10, 2019

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
Copy link
Author

@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
Copy link
Author

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

@Muhammad-Ahmad-Waseem
Copy link

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?

@AurelaShehu
Copy link

AurelaShehu commented Nov 12, 2020

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 *

@KirillHiddleston
Copy link

KirillHiddleston commented Apr 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants