MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Optimize performance

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


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-16-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 19
Optimize performance

hi boys, I'm using the method "optimize". I've set 5 waypoint but the problem is:
it requires about 3 minutes only for 5 point, is it normal???
can I do something for optimize the time??

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: Optimize performance

Hi,

This looks not normal, unless if it is a very difficult route to calculate?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 742
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-16-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 19
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-18-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-18-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 19
Re: Optimize performance

Quote:
Originally Posted by Wilfried View Post
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?
mmm very strange.
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-19-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: Optimize performance

Hi Andrea,

Virtual machines degrade performance of course. yes please try it first on a regular machine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 04-21-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 19
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();
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-22-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 19
Re: Optimize performance

Quote:
Originally Posted by Wilfried View Post
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?
do yu use optimize method?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 04-22-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/optimize-performance-7497.html

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 08:09 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47