2,038 questions
0
votes
2
answers
56
views
Control levels the marginaleffects library uses when stratifying a numeric variable
I'm trying to use the marginaleffects library in R to get the estimates of a bunch of interaction effects from a bunch of different models. When I pass it an interaction that has a continuous ...
0
votes
0
answers
39
views
Coarsening the resolution of a xarray dataset
Very new to python! I am trying to model bottom water temperatures over time and need to reduce the resolution of my model from 1/20º to 1º. My ultimate goal is to map this and select specific grid ...
1
vote
1
answer
77
views
How do I find the closest lon, lat points in a spatial data frame that have non-NA values?
I have two data frames (in R), one with some environmental data and one with the occurrences of some species. I want to find the closest points (lon,lat) of the environmental data frame WHICH HAS A ...
0
votes
1
answer
25
views
Issue facing in the running Hydroblocks model
I am trying to run Hydroblocks model, for Kaledhon region, and i make sure that, all input data has properly set. But i am facing problems in pre-processing step steps itself. am trying again and ...
3
votes
2
answers
65
views
Are these UML state diagrams valid even if "vessel" is not a strict substate of "voyage" or "shipment"?
I draftet UML state diagrams to represent the lifecycle of voyages, shipments, and vessels in a maritime logistics system. Before finalizing the model, I want to make sure it's valid according to UML ...
2
votes
1
answer
80
views
Modeling Asynchronous Interactions in shipment Lifecycle
I'm modeling shipment creation sequence diagram.
User creates shipment request -> system checks container/voyage candidates (reference to generate candidates diagram).
(1)If candidates exist -> ...
1
vote
1
answer
79
views
Heat equation units in FiPy
Question
Am I correct in using volumetric properties when simulating the heat diffusion equation with FiPy?
Context
I am solving the transient heat diffusion equation with an explicit source term.
...
0
votes
0
answers
24
views
Keep getting pickling error when using neurolib (model-fitting)
Main error:
PicklingError:
Can't pickle <class 'neurolib.utils.parameterSpace.ParameterSpace'>:
it's not the same object as neurolib.utils.parameterSpace.ParameterSpace
Full error:
Python ...
0
votes
0
answers
26
views
Missmatched Pole-Zero Plots Between Simulink and XFLR5
I'm currently trying to create a 6DOF fixed wing uav model inside simulink with this playlist. I created a plane model inside xflr5 and followed the steps inside the video for transferring to the ...
3
votes
1
answer
44
views
Python GEKKO - Non-zero Degrees of Freedom due to if2/if3
Currently I am building an economic model in Python GEKKO:
m = GEKKO()
m.time = np.arange(0, 200, 1)
#define the variables
consumption = m.Var()
tax = m.Var()
...
1
vote
1
answer
130
views
Error Downloading Chelsa Climate Data with pastclim
I attempted to download the current chelsa 2.1 climate variables using pastclim. However, I keep getting the error:
Error: buildvrt: options error.
terra, gdal, and pastclim are up-to-date. Is this ...
0
votes
1
answer
68
views
Excel: Repeat Sumifs based on the length of another column
I have created a dynamically updated table where the legnth of criteria in column AL changes. My problem is that the formula in column AN only extends as far as I have it pasted. Is there a way to get ...
0
votes
0
answers
10
views
CO2 inverse modeling accuracy
I used an ERA5 database and data from a weather ground station.
I want to estimate CO2 emission rates from known sources using a combination of weather station data, mobile CO2 sensors and databases ...
0
votes
0
answers
46
views
Can invariants span across multiple aggregate roots?
I've got a bit of a theoretical question surrounding DDD and aggregates. It really boils down to this: Yes, we all know that within an aggregate everything must stay consistent. But does that mean ...
0
votes
1
answer
122
views
Using multiple repositories in application layer DDD
I'm learning about DDD and am attempting to model a basic interaction between a user and a shopping cart, and am wondering if the following code is directly aligned with DDD principles, or if there is ...
0
votes
1
answer
58
views
how to make slack variables with only single index each but each comprises more than one element
I'm reproducing this paper and confused with the notation.
There, z_{i} is a slack variable with single index. However, the definition of it: z_{i}: ith row vector in an m × N_{R} matrix of positive ...
0
votes
0
answers
53
views
SARIMAX for demand forecasting
The code below runs SARIMAX to predict product demand by customer. First, the product types by customer are considered as a single combination, and then STL decomposition is performed on each ...
1
vote
1
answer
60
views
How can I merge agents into a different type agent using multiagents?
Starting from the example Continuous space social distancing, I'm trying to create a model that involves merging each pair of nearby agents into an agent of a different type, with other properties.
...
0
votes
1
answer
137
views
glmer and 'hessian is numerically singular'
I have following dataframe:
> test_df
sample pers expl resp
1 1 1 a 1
2 2 2 a 1
3 3 3 a 1
4 4 4 a 1
5 5 5 a 1
6 6 ...
2
votes
1
answer
89
views
Modelling objects and changes to object which evolve over time in a SQL database
I'm, wondering if there is
at least a name
and/or a generic solution
for the following problem:
I have an object that has some properties.
{
"name": "Foo",
"colour&...
0
votes
1
answer
174
views
Dredged many global models in R (binomial GLMs), how can I compare results across models?
I'm conducting data exploration on lots of parameters (including multiple ways to summarize a parameter). I'm trying to prioritize variables for prediction onto test data. I'd like to use dredge to ...
0
votes
1
answer
64
views
How do I change my SUMO option --collision.action from the default value "teleport" to "none"?
I need to set SUMO (Simulation of Urban Mobility) so that no action is taken when vehicle collisions occur. To do this, I need to change the --collision.action option, which by default has value "...
0
votes
1
answer
83
views
Modelling an arbitrary (but fixed) number of independent planning varibales in Timefold?
I'm assigning rooms to lessons in my schedule generator. My current model looks like this:
@PlanningEntity
class Lesson {
...
@PlanningVariable(allowsUnassigned = true)
Room room;
Set&...
0
votes
1
answer
94
views
Fluid calculation in OpenModelica
I am trying to build my library for hydraulic calculations. I have a problem with the pipe model.
This is what my pipe model looks like:
model pipe_v0
import Modelica.Units.SI;
parameter SI.Area ...
1
vote
1
answer
74
views
Incorporating time step dependent rate/parameter in a metapopulation model
I would like to incoparate a rate that changes with times in a metapopulation model using code by B. Raynor. The code was originally published at https://rpubs.com/bhraynor/MetapopulationModel
In the ...