Community of VE/MapPoint Users and Developers
This is a discussion on Optimize performance within the Development forums, part of the MapPoint 2006/2009 Discussion category; hi boys, I'm using the method "optimize". I've set 5 waypoint but the problem is: it ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Re: Optimize performance
Hi, This looks not normal, unless if it is a very difficult route to calculate?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
| Re: Optimize performance
I have seen this kind of performance (and much, much worse) if the points are spread out. If they're close together (eg. the same city) then it should be much quicker. Note that you are essentially solving the Travelling Salesman Problem. This is recognised in Computer Science as computationally difficult. The time required increases exponentially according to the number of points. Also on top of that, you have to calculate the individual route segments. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
| Re: Optimize performance
I've solved the problem with CPU, cause i use win XP in a virtual machine. I've changed the option of core and now its ok. SO, I've done this test: 5 point in about 300km --> 2:26 minutes. is it ok? is it normal? I've tryed also with the software mappoint and the result is the same. |
| |||
| Re: Optimize performance
Hi, I just did in the standalone executable 5 points in France with a total distance of 1600 km. the calculation of the route take exact 3 seconds. Is the machine oke? For example starting the start alone exetable how log does this take?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Optimize performance Quote:
Yesterday i've tryed also without the optimize method and then it has require 3 minute... i don't know why! Maybe because i use Mappoint on one virtuale machine (VMware). i must to try in a simple PC... |
| |||
| Re: Optimize performance
Hi Andrea, Virtual machines degrade performance of course. yes please try it first on a regular machine.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Optimize performance
ok, i've installed mappoint and my application on a regular machine. but it required about 1.30 minute for to get the point. this is my code: ApplicationClass wApplication = new ApplicationClass(); wApplication.Units = GeoUnits.geoKm; Map wMap = wApplication.ActiveMap; Route wRoute = wMap.ActiveRoute; wMap.Parent.PaneState = GeoPaneState.geoPaneRoutePlanner; object item = 1; wRoute.Waypoints.Add( wMap.FindResults("Milano").get_Item(ref item) , "Milano"); wRoute.Waypoints.Add(wMap.FindResults("Mantova").g et_Item(ref item), "Mantova"); wRoute.Waypoints.Add(wMap.FindResults("Lecco").get _Item(ref item), "Lecco"); wRoute.Waypoints.Add( wMap.FindAddressResults("via centrale 8", "Abbadia Lariana", string.Empty, "Lombardia", "23821", GeoCountry.geoCountryItaly).get_Item(ref item), "Casa Mia" ); wRoute.Waypoints.Add(wMap.FindAddressResults("via belfiore 41", "Lecco", string.Empty, "Lombardia", "23900", GeoCountry.geoCountryItaly).get_Item(ref item), "Lecco"); wRoute.Waypoints.Add(wMap.FindResults("Piacenza"). get_Item(ref item), "Piacenza"); wRoute.DriverProfile.StartTime = System.DateTime.Now ; // optimize wRoute.Waypoints.Optimize(); wRoute.Calculate(); |
| |||
| Re: Optimize performance do yu use optimize method? |
| |||
| Re: Optimize performance
Hi Andrea, I tryed and yes takes same long time here too. If you try exact same locations direct on the mappoint.exe (manually) is it taken that time too? If not you probably have to set driverprofile and preferred roads in your application.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 04-22-2008 01:15 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimize Custom Symbol Map Rendering Performance | gkirbo | MapPoint 2006/2009 Discussion | 21 | 05-09-2006 06:21 PM |
| Performance | Eric Frost | MapPoint 2006/2009 Discussion | 2 | 03-24-2006 06:27 AM |
| ActiveX performance with .NET | cd4000 | MapPoint 2006/2009 Discussion | 1 | 11-09-2004 08:09 AM |
| Performance within a vb.net app.. | douglas | MapPoint 2006/2009 Discussion | 1 | 06-04-2003 09:22 AM |
| MapPoint Add-In performance | rseman | MapPoint 2006/2009 Discussion | 2 | 05-06-2003 08:00 AM |
Ski Holidays Andorra
Ski holidays in Andorra offer value for money right across the board. Clothes, meals and accommodation are great value with duty free prices. Book great value ski holidays today.
Travel Agent
Travel Counsellors was voted UK's Best Travel Agent at the Guardian Unlimited travel awards.
Cheap Flight Canada
Making a cheap flight to Canada can become a reality when you book online with dealchecker.co.uk. Our simple search allows you to see for yourself who is the cheapest.
Holidays to Sri Lanka
Holidays to Sri Lanka are enriched by the glittering tapestry of culture and breath taking mountain views. Book a holiday there today!
Cheap Canaries Holidays
Are you hunting down cheap Canaries holidays? Well check out ulookubook.com to bag a great value holiday. There are numerous festivals taking place all year round. Why not book your holiday around one?
Family activity holidays
Family holidays can be full of fun activity. Check out your options at Travel.co.uk
Cheap Holidays in Portugal
Don't spend your hard earned money on travelling agents! Come to On The Beach, and see information on cheap holidays in Portugal.