Anylogic: How to change agent graph presentation (stop appearing within GIS Map)? - graph

On my Main tab in my Anylogic model I have a GIS Map. In another tab (from one of my agent populations), I have a graph (created from a time measurement within this agent). Whenever I run the model, the graphs of those agents are shown within the GIS Map (the same way the agents are placed on the map), as can be seen in the figure below. However, I want the graph to be shown next to the GIS Map (like the pyCommunicator and other parts shown above the map). Whatever I try (I placed the graph outside/inside the frame in the agent's tab), it stays within the GIS Map when running. Does anybody know how to solve this problem?

Easier way is to create the graphs directly in the Main agent. For that, you should reference to the specific instance of the Terminal agent. For example terminals(0).end.distribution.
You also need to drag and drop Terminal agent into the Main.

Related

Scada-LTS Synoptic Panel not showing data values

First, many thanks to the Scada-LTS team for making this excellent tool available.
I have successfully implemented the functionality of a Scada system by testing two virtual data points (a binary data point representing valve status and a numeric data point representing fluid flow) in a Graphical View panel but in a Synoptic panel populated with elements drawn in Inkscape, I am unable to view data values. I carefully adopted the object ID convention described in the Scada-LTS tutorial video and although graphical objects assigned SLTS_valve_1_background_left' and 'SLTS_valve_1_background_right'change color as expected, default text in the text box with ID 'SLTS_valve_1_value' disappears when the Synoptic Panel loads. The contents of a text box with ID 'SLTS_point_1_value' associated with the numeric data point also disappears and is not replaced with live data.
I am running Scada-LTS on a Windows 10 computer in docker containers and have tried Microsoft Edge and Firefox browsers. Has anybody else experienced this problem and come up with a solution, or did I miss something in the tutorial?

Calculate the routes from dwg layout

I have a dwg 2D layout of a hanging warehouse. We have to development a WCS system, this system consist also to calculate the shortest way to reach the destination.
Is there any way to convert the DWG to a GRAPH and use the python-networkX to calculate the route? At the end I have to get a list of track route.
I can find a similar layout in this google search.
I suggest you to create an application that displays the DWG layout.
The application will respond to mouse movement and clicks on the displayed layout as follows:
Left mouse click: Add a node to the graph (location or waypoint)
Right mouse click on node: Add single hop link between node and previously selected
Then you can run Dijkstra algorithm whenever you need to calculate the shortest route.
I would NOT recommend using python for this as it is far too slow.

Making independent graphs for different event types

The application insights APIs let you record custom events for user-defined purposes. They also let you record custom properties on those events.
The Application Insights chart control on the Azure Portal however, appears to have some annoying limitation.
Let's say we have two event names:
Login: A user logged in.
Work: The application started some expensive background job, which happens independently of any user action on various conditions.
Then I likely don't want those event types to be series in the same chart. In particular, I may want to do a grouping by user or something similar in case of Login, but that would make no sense for the Work type.
They really have nothing to do with each other and I'd like to have them in different charts.
I do, however, want them to be in the same chart control (the whole white rectangle thing that groups charts together and where you set the time scope and filters on).
The following missing features would each solve the problem:
If it was allowed to set a filter on individual charts rather than only the chart control as a whole.
If each event name would appear as a distinct metric to select.
I know there's also Analytics, but then I still don't have the new chart in the same old chart control.
Is there another option I overlooked?
There's no way to do this in any one specific metrics explorer window, like you said, filters apply to the whole window.
But you can do this by creating a dashboard, and pinning individual metrics explorer charts (or grids, or whatever) to that dashboard.
make a new dashboard, and name it something distinctive
create one of the charts you want with the right filters in a standard metrics explorer part.
pin that chart to the dashboard created in step 1.
repeat steps 2 and 3 to create each chart with its own settings
go to that dashboard, and resize / configure each chart the way you want it

Troubleshoot why Tableau Action doesn't show one value

I created Tableau Dashboard Actions.
If no action is taken, all data is displayed, i.e.
And when I click the appropriate data point, the appropriate data displays in other sheets of the Dashboard - except one.
How to troubleshoot when only one datapoint doesn't work?
When I toggle through filter, i.e. dropdown, all values show.
But when I create action to hover or select point in map, the problem persists with one data source.
I know it's not a filtering issue.
I recreated the flat source file, and the entire Tableau program, but the problem still persists.
What else can I troubleshoot?
Location 2 is very close to other locations, if that matters, but the locations nearby also work
And when I remove Location 2 from the flat-file and re-load tableau, all points work.
So I'm trying to figure out
If I use Locations drop down as a filter, all locations work, and only the relevant points are plotted on the map
If I create action for hovering over point in map, all points work except Location 2
I re-added one of the datapoints, even re-named the address but it's still not working.

Drill down in SSRS US Map Reports

I have been interested in map reporting, so I wanted to create a map report with drill down functionality, so basically created two reports as follows:
a) Main report based on SQL Server Spatial data for showing US States wide sales
b) Drill down map report based on ESRI shapfile for showing US Counties sales for the selected state
I downloaded the US Counties ESRI shapefile.
Once I was done with the reports, I tested the map with drilldown functionality. I previewed the main report, hover the mouse over Texas and I don't see the counties for Texas state. I see only a map of the US with tiny dots.
So, I am not sure what I missed. I chose County Name column from the spatial data and also the county name from the analytical dataset. Is it the ESRI shapefile?
Please advise.
To my knowledge SSRS does not support 'hover over' features only an 'action' feature. The action can go to a hyperlink, go to a report, or go to a section. To do a drill down for a report, even if it is geographic you need to have a reference to something you can pass to something else. I recently did something similar to what you are asking though. You can make a 'subreport' that dynamically gets created from a geographic data type that represents states. What I did:
I downloaded a program that takes Census shape files and puts them into a SQL database:
http://www.sharpgis.net/page/sql-server-2008-spatial-tools.aspx
I got a shape file of the counties of the US from the Census.
I created a database called 'Spatial'
I created a table and inserted data into it from step 1's app called 'Counties'
I created a generic US map as my 'Main' report, using the geographic options for the US.
I created a subreport of a map type but chose the spatial data wizard. The options are not that important to get started but HOW you make the image. This report gets it's data from the 'geographic' column of the table I made so the query would be like this(ensure to have a datasource go to the Spatial Database):
Select StateName, Counties, geog(geographic type)
from UsCounties
where StateName = #State
The report when done looks like a blob, because it is created at run time, not statically. You can 'preview' it and pass in a state like 'OR' or 'WA' from a variable that should be created called 'State'. If it was not auto created you may do so and make it a 'Text' variable. It will display the state shape if it was set up correct.
You may go back to the report in step 5 and then go to the 'Polygon Properties' of the layer you created.
Select the 'Action' pane on the left. Choose 'Go to report', specify the sub report you created, the report will want a variable match for 'State' the generic US state has an 'Abbreviation' that corresponds to the state two digit code.
Now you should be able to run the main report and when you click anywhere in a state it will 'drillthrough' to a report that is created at runtime from the spatial database. This is vector based so it is fairly quick depending on your hardware hosting your machine and how much data you show.
Keep in mind that with SSRS it is hard to make it have some 3d features and hover over for some reason is completely ignored for objects but is relegated to only 'tooltips' which you can load up with functions to give text and numbers but not much more. There is a hack I wrote in another place of how you can use javascript to pop out a window, but under the hood you are really just doing a drill through presented differently.

Resources