Comments (3)
We could do something like np.loadtxt
:
from vrplib.
In #76 we managed to find a way to verify if an instance is in VRPLIB format or not. We can do the same for Solomon instances. The Solomon instances have a fixed file format:
<NAME>
VEHICLE
NUMBER CAPACITY
<number> <capacity>
CUSTOMER
CUST. NO XCOORD. YCOORD. DEMAND READY TIME DUE DATE SERVICE TIME
<data row 1>
...
- We ignore all empty lines.
- Then we check if the first line contains "VEHICLE"
- We check that the second line contains "NUMBER" and "CAPACITY"
- We check that the third line contains two integer values
- We check that the fourth line contains "CUSTOMER"
- The fifth line contains the customer header names, but these are inconsistent in number of spaces. For example, sometimes
SERVICE TIME
is used and sometimesSERVICE TIME
is used. So I'm not sure how to check this.
from vrplib.
Closed by #83.
from vrplib.
Related Issues (20)
- UnicodeDecodeError when reading SINTEF solution file HOT 2
- Raise warning when empty instance/solution
- Line comments HOT 4
- Documentation HOT 4
- Distance Matrix Rounding HOT 4
- Deprecate downloading instances
- Parse non-tabular section data
- Try out Ruff
- Increase coverage to 100%
- Verify that instance is VRPLIB format HOT 1
- Distance matrix computation performance HOT 1
- Deprecate pkg_resource.read_text HOT 1
- Check if LKH-3 instances can be read HOT 2
- Check if TSPLIB95 can be read
- Optional distance computation for large instances
- Ignore -1 in depot section HOT 1
- Specify instance and solution formats in README
- Supersede TSPLIB HOT 1
- Prize-collecting and benchmark instances HOT 5
- Validate instance and solution data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vrplib.