Search found 112 matches

by davek
Sun Aug 18, 2019 4:37 pm
Forum: Programming
Topic: Using matrices to implement a search algorithm in ExtendSim
Replies: 5
Views: 161

Re: Using matrices to implement a search algorithm in ExtendSim

Matt, We have both Python and ExtendSim programming expertise here at Kromite. The easiest way to do this is to write the array to a file, call WinShellExecute to run the Python program, and then read the data back into ExtendSim. If this is not fast enough then you can either figure out a way to ca...
by davek
Tue Jul 30, 2019 6:03 am
Forum: Programming
Topic: Using matrices to implement a search algorithm in ExtendSim
Replies: 5
Views: 161

Re: Using matrices to implement a search algorithm in ExtendSim

Matt, I think your problem is a little different than the one in the algorithm. I believe its theoretically possible that the largest area would not have sufficient length for an aircraft, but a smaller area would be long enough. For example you could have one open patch that is 300 x 700 ft and ano...
by davek
Tue Jul 30, 2019 6:03 am
Forum: Programming
Topic: Using matrices to implement a search algorithm in ExtendSim
Replies: 5
Views: 161

Re: Using matrices to implement a search algorithm in ExtendSim

Matt, I think your problem is a little different than the one in the algorithm. I believe its theoretically possible that the largest area would not have sufficient length for an aircraft, but a smaller area would be long enough. For example you could have one open patch that is 300 x 700 ft and ano...
by davek
Tue Apr 30, 2019 6:57 am
Forum: General Discussion
Topic: Counting Items in a Specific Range
Replies: 2
Views: 267

Re: Counting Items in a Specific Range

Alex,

I have attached a model that stores the throughput by shift. The equation block figures out which shift that is running and the Write(I) block adds 1 to a record (calculated by the equation) in the database whenever an item passes through.

Dave Krahl
Kromite LLC
www.kromite.com
by davek
Tue Apr 09, 2019 6:49 am
Forum: General Discussion
Topic: Displaying the PDF and CDF from a model
Replies: 2
Views: 610

Re: Displaying the PDF and CDF from a model

You can display the PDF by using a histogram from the plotter library (found in legacy libraries). Another approach would be to write the observations to the database and export it to R, Excel, JMP or another program and plot the information there. Would be happy to help out with any of these if you...
by davek
Thu Feb 21, 2019 3:21 am
Forum: Programming
Topic: No DBFieldGetInitialze function?
Replies: 3
Views: 971

Re: No DBFieldGetInitialze function?

As far as I know you are correct, you can set the initial value of a database field, but you can not get it. One thing that you could do is create a new record and then get get the value of record in that field. That would give you its initial value.

Dave Krahl
Kromite LLC
www.kromite.com
by davek
Mon Feb 18, 2019 7:33 am
Forum: General
Topic: Find and Replace Dialog Items
Replies: 0
Views: 272

Find and Replace Dialog Items

A couple of our customers were asking about how to do a find and replace for a dialog value in ExtendSim. I put together a quick video explaining the process:
https://www.youtube.com/watch?v=ELylmO1Pd00
by davek
Fri Feb 08, 2019 9:25 am
Forum: Item library
Topic: Queue Matching vs. Batch block
Replies: 1
Views: 557

Re: Queue Matching vs. Batch block

Sanjay, Yes, you are correct. There is some overlap in functionality between the Batch and Queue Matching. The Queue Matching is quite a bit more powerful and you may want to consider using that if you think you might want to take advantage of its additional features in the future. Dave Krahl Kromit...
by davek
Thu Sep 27, 2018 10:33 am
Forum: Interfacing to Other Apps
Topic: Interfacing to google sheet
Replies: 1
Views: 1272

Re: Interfacing to google sheet

Florent, This is quite feasible. Google sheets has an API that ExtendSim should be able to communicate to. I would be a little concerned about performance if you have a large amount of data that you are exporting. We here at Kromite have experience in programming ExtendSim and web-based applications...
by davek
Wed Sep 12, 2018 1:26 pm
Forum: Item library
Topic: Resource Pool Stats
Replies: 6
Views: 2987

Re: Resource Pool Stats

You should never see that particular error on one of the standard ExtendSim blocks. I tried playing around with batching and unbatching with preserve uniqueness a bit more, but still had no problems. If something in ExtendSim is not supported, then you should get a direct message that you can not co...
by davek
Wed Sep 12, 2018 7:42 am
Forum: Item library
Topic: Resource Pool Stats
Replies: 6
Views: 2987

Re: Resource Pool Stats

Using costing to count the resource pool use is a great idea (better than mine). Its too bad that there is a bug in the Unbatch block that is causing a problem. I am afraid that I probably own that problem as I wrote that block when I was at Imagine That. However, I have not been employed there for ...
by davek
Wed Sep 12, 2018 6:12 am
Forum: Item library
Topic: Resource Pool Stats
Replies: 6
Views: 2987

Re: Resource Pool Stats

That's a good question. Of course you could add up the number of items that pass through every Queue that allocates the Resource Pool, but that would be inconvenient. I put together a model that adds 1 to a static variable every time the number of Resource Pool units increases. The model is attached...
by davek
Tue Jul 31, 2018 10:59 am
Forum: Blocks
Topic: Kromite Blocks
Replies: 0
Views: 1485

Kromite Blocks

At Kromite we do quite a bit of simulation modeling with a variety of tools. One of which is ExtendSim. Over the course of our modeling projects, we have developed a number of blocks that improve the interface, performance, and usability of ExtendSim. You can download the Kromite Blocks library here...
by davek
Tue Jul 31, 2018 10:34 am
Forum: General Discussion
Topic: Emptying the Queue in a Simulation
Replies: 2
Views: 1032

Re: Emptying the Queue in a Simulation

You can use the Count connector on the Executive to stop the simulation when a particular condition exists. In this case it will be when it is after closing and no one is left in the bank. You can turn on this connector by changing the "Stop simulation" option in the Executive. I have attached an ex...
by davek
Fri Jul 13, 2018 8:03 am
Forum: General Discussion
Topic: Assigning Unique Values to Items to be Recognizable throughout the Simulation
Replies: 4
Views: 1764

Re: Assigning Unique Values to Items to be Recognizable throughout the Simulation

Can you be more specific? Do you want to randomly remove items from the queue or randomly sort the queue? I am not sure that the Queue Matching is the block that you want. I think you may want either a regular Queue or a Queue Equation block. Perhaps explaining the real system would be helpful.
by davek
Wed Jul 11, 2018 7:47 am
Forum: General Discussion
Topic: Assigning Unique Values to Items to be Recognizable throughout the Simulation
Replies: 4
Views: 1764

Re: Assigning Unique Values to Items to be Recognizable throughout the Simulation

Use an Information block to get the count of items and a Set block to set an attribute value. I have attached a model that illustrates this.

Dave Krahl
Kromite LLC
by davek
Thu Jun 28, 2018 8:30 am
Forum: Programming
Topic: Multiple Models and Communication
Replies: 5
Views: 2401

Re: Multiple Models and Communication

No, hierarchical blocks do not reduce the size of the model. If you are concerned about size there is a block called "Model Size" in the Utilities library that reports the size of every block in the model. You may be able to use this information to reduce the memory footprint. The RealTimer block (a...
by davek
Wed Jun 27, 2018 1:29 pm
Forum: Programming
Topic: Multiple Models and Communication
Replies: 5
Views: 2401

Re: Multiple Models and Communication

Kim, I don't think that having two models communicate with each other will achieve what you want. For one thing, you can only have one instance of ExtendSim running on a computer at a time. Also, even if you were able to run two instances of ExtendSim on the same computer, the overhead for moving it...
by davek
Wed Jun 13, 2018 8:00 pm
Forum: General Discussion
Topic: Can ExtendSim Model multicomponent chemical streams?
Replies: 11
Views: 3646

Re: Can ExtendSim Model multicomponent chemical streams?

Tony,

FYI we have modeled fairly complex chemical reactions and developed some blocks for calculating and logging the mass balance. We may be able to speed you along in your modeling. Let me know if you are interested in talking.

Dave Krahl
dkrahl@kromite.com
Kromite LLC
by davek
Thu Apr 26, 2018 6:23 am
Forum: General Discussion
Topic: Lost embedded spreadsheet
Replies: 2
Views: 1276

Re: Lost embedded spreadsheet

We have found that it is easier to keep the spreadsheet files in external documents and not embed them. For example, the embedded sheets do not always work across different versions of Excel. So if you were to give the model to someone else or update Excel that may not work. If you keep the spreadsh...