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

report some gurobipy.GurobiError: Element 0 of a double array is Nan or Inf. #1

Open
oneway3124 opened this issue Apr 13, 2020 · 0 comments

Comments

@oneway3124
Copy link

C:\ProgramData\Anaconda3\envs\nilmtk-env\python.exe C:/Users/19002/Desktop/CVRPTW-Python-Gurobi/CVRPTW.py
Node X Y Demand Profit Et Lt St
0 1 82 76 NaN NaN NaN NaN NaN
1 2 96 44 19.0 20.0 10.0 11.0 30.0
2 3 50 5 21.0 32.0 13.0 15.0 15.0
3 4 49 8 6.0 11.0 11.0 12.0 15.0
4 5 13 7 19.0 23.0 16.0 17.0 30.0
5 6 29 89 7.0 6.0 9.0 13.0 20.0
6 7 58 30 12.0 18.0 14.0 16.0 15.0
7 8 84 39 16.0 21.0 10.0 14.0 60.0
8 9 14 24 6.0 11.0 13.0 14.0 15.0
9 10 2 39 16.0 20.0 16.0 17.0 30.0
Using license file C:\WINDOWS\system32\gurobi\gurobi.lic
Academic license - for non-commercial use only
Traceback (most recent call last):
File "C:/Users/19002/Desktop/CVRPTW-Python-Gurobi/CVRPTW.py", line 88, in
m.addConstr(z[i+1] >= (z[j+1] + st[j+1] + dist_matrix[j+1, i+1])*(x[j+1,i+1])) ## taking distance from one node to other as travelling time in minutes between those nodes
File "model.pxi", line 3247, in gurobipy.Model.addConstr
File "model.pxi", line 3158, in gurobipy.Model.__addConstr
gurobipy.GurobiError: Element 0 of a double array is Nan or Inf.

Process finished with exit code 1

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

1 participant