In a tunnel with 3.9 m high, how can I allow a truck with 3.7 m to pass and prevent another truck with 4 m from passing? Thanks.
I've already done that.
What I'm looking for is a way in the VRP solution to compare the height of the road with the height of vehicles A and B at the same time (in the same VRP analysis).
Thank you for your time.
When you create a restriction on the network and set up the vehicle height parameter for that restriction, the value you put in there is simply the default. You can adjust that value before solving your analysis.
The best thing to do is to create two travel modes, one for each truck. A travel mode includes all the analysis settings, such as restrictions and parameters, that will be applied for the analysis. In the Restrictions section of the travel mode configuration, set the vehicle height parameter value to the appropriate value. In other words, you can just override the default value of the parameter using the correct value for the truck you're trying to model.
Since you are asking about how to do this with your own data in ArcGIS Pro, here's a summary of what you need to do: You need to create a restriction attribute that will make each road restricted by comparing the road's height limit with a parameter value indicating the height of the vehicle being modeled in the analysis. You need to set this up with a function evaluator comparing an attribute parameter representing the vehicle height against a descriptor attribute representing the height limit of the road. The descriptor attribute will probably need to use a field evaluator to draw the height limit information from a field in your street data.
The best way for you to understand how to set all this up is to run through the Create a network dataset tutorial. Part of that tutorial does exactly what I described above. The sample data that comes with the tutorial also has an already-constructed example.
I have already tried this with only one truck. Now I want to be able to do it for two trucks in the same solution VRP.
I'm using ArcGIS Pro with my network dataset. Thank you for your time.
If you can provide more details, it would help me to better answer your question. For example, are you running a network analysis using the ArcGIS Online services or the REST API or something, or are you using ArcMap or ArcGIS Pro with your own network dataset?
totally never tried it ... just check the help files using "network analyst height restrictions" and one of several
RouteSolverProperties—Network Analyst module | Documentation
Provides the ability to get or set the parameterized attributes to be used in the analysis. The property returns a Python dictionary. The dictionary key is a two-value tuple consisting of the attribute name and the parameter name. The value for each item in the dictionary is the parameter value.
Parameterized network attributes are used to model some dynamic aspect of an attribute's value. For example, a tunnel with a height restriction of 12 feet can be modeled using a parameter. In this case, the vehicle's height in feet should be specified as the parameter value. If the vehicle is taller than 12 feet, this restriction will then evaluate to True, thereby restricting travel through the tunnel. Similarly, a bridge could have a parameter to specify a weight restriction.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.