Search found 119 matches

by davek
Fri Jun 12, 2020 3:46 pm
Forum: Item library
Topic: Resource Item Output
Replies: 1
Views: 721

Re: Resource Item Output

It will favor one output over the other. I believe that it is the first one connected. If you want to control the sequence of items, use a Select Item Out block.

Dave Krahl
QMT Group
www.qmtgroup.com
by davek
Tue Apr 28, 2020 6:16 am
Forum: General Discussion
Topic: Creating or Releasing One Item On Demand
Replies: 2
Views: 1195

Re: Creating or Releasing One Item On Demand

If you select Create Items by Schedule in the Create block, then you can use the start connector to generate items. I have attached a model. I was unable to get this to work when the "Generate one item than waits" option was selected on the option so use the Generates one item per message option. Da...
by davek
Thu Apr 16, 2020 5:13 am
Forum: Database
Topic: Sum of values matching query
Replies: 5
Views: 1374

Re: Sum of values matching query

Take a look at the DB Stats Block in the Report library. That may meet your needs. If it does not, calling DBDataGetAsNumber in a loop is the best solution. I think functions to calculate statistics on database tables is a good idea.

Dave
by davek
Thu Apr 16, 2020 5:13 am
Forum: Database
Topic: Sum of values matching query
Replies: 5
Views: 1374

Re: Sum of values matching query

Take a look at the DB Stats Block in the Report library. That may meet your needs. If it does not, calling DBDataGetAsNumber in a loop is the best solution. I think functions to calculate statistics on database tables is a good idea.

Dave
by davek
Sun Apr 12, 2020 6:59 pm
Forum: Database
Topic: Sum of values matching query
Replies: 5
Views: 1374

Re: Sum of values matching query

Steve, Does more than one record have the same department? If so, I would set up a parent table with the department and the sum. Then you can loop though your table and create a total for each department in the parent table. Let me know if you need more details on how to do this. Dave Krahl ExtendSi...
by davek
Wed Feb 26, 2020 6:07 pm
Forum: General Discussion
Topic: Optimisation
Replies: 8
Views: 2122

Re: Optimisation

I fixed your model. There were a few problems: 1. Removed Executive so that this would be a continuous model 2. Changed reference for Seatssold in Equation block from 0,3 to 0,2 (Tables are 0 based) 3. Fixed math in objective function in Optimizer I may be able to help with additional enhancements o...
by davek
Thu Feb 20, 2020 12:32 pm
Forum: General Discussion
Topic: Optimisation
Replies: 8
Views: 2122

Re: Optimisation

I see the problem. The variables that you want to use as inputs are outputs from the Random Number block. When you set the result dialog value in the Random Number block, it does not change the value at the output connector. Use a constant block instead and set the constant value to the fare and num...
by davek
Sun Aug 18, 2019 4:37 pm
Forum: Programming
Topic: Using matrices to implement a search algorithm in ExtendSim
Replies: 5
Views: 4004

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: 4004

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: 4004

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: 1832

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: 2180

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: 2520

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: 5546

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: 2036

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: 2635

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: 6068

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: 6068

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: 6068

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: 5532

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