Jump to content

Help dealing with many models


Recommended Posts

Hi guy.


So I've been struggling with this for a long time now... Basically I have developed a model that simulates a company warehouse.. Originally this was supposed to be for a single company, but now the project has evolved and the tool is now capable of modelling the warehouse of many companies.


But there is one problem... The logic of the model works for any of the companies. However, the layout (which is automatically created through an add-in I developed) has to be created for each case. So each time I have to alter the model I chose one of the models, make the changes and then I have to create all the layouts again to apply the changes to the remaining models... this is very tiring and time-consuming. Nonetheless, the only alternative I could come up with was to make the changes on all the models which is unpractiable.


Previously I had already created a topic (http://www.simio.com/forums/viewtopic.php?f=6&t=2069) where i was already foreseeing this problem. However, I still don't know what would be the best strategy to adopt, so I was hoping someone could give me some advice on how to proceed.


Many thanks.

Link to comment
Share on other sites

Thanks for your reply Petr Tulach. I've already emailed you :)


I would like to add some information that I did not state on the original post. Thus, I would like to emphasize that, to update the layout of a single model, I have to delete all the objects on its Facility and then create them anew. The simple process of deleting all the models can take hours! Sometimes, it takes more time to delete them all than to create a new warehouse (I can't understand this). Thus, I have 2 processes each 1 consuming more that 1 hour!


All of this, just to update the logic of all the other Simio files I have that are using the same logic... Isn't there a better way to do this? So, I really would apretiate some help, even if it is just to tell me that there is no alternative to what im currently doing (at least I would know I have to do it this way, unfortunately)

Link to comment
Share on other sites

To help speed up a large batch of operations on a model, I would suggest trying the IModel.BulkUpdate routine. It may help.


However, batch removals are hard. Our current code path always tries to keep the errors and error window up to date, which means on every deletion we basically notify every object in the model that something was deleted and give it an opportunity to say "Hey, wait! I was referencing that! Now I need to generate an error..."


There may be ways to speed up the removal of a majority of objects from a model, but that is something we'd have to schedule internally on our feature backlog.

Link to comment
Share on other sites

 Share

×
×
  • Create New...