instruction stringlengths 43 28.1k |
|---|
I'm working with pressure-velocity coupled systems. It means that instead of solving 4 different linear systems in segregated approach (1 for pressure and 3 for Ux, Uy, Uz), we can solve only one coupled system. Assuming simple 3D rectangular mesh resulting matrix appears to be 7-diagonal with each element is a block 4... |
What is the the simplest way to get started using GPU computing?
My interests are primarily in neural networks and I would love to start using GPUs, but my time for learning GPU computing is very limited. Are there simple libraries for R or something that make it easy to multiply matrices on GPUs?
|
Let
$$T=1, K=100, S_0=100, \sigma=0.05, r=0.15. $$
Define $\nu:=\frac{2r}{\sigma^2}-1$
and $$H(y,z)=\frac{z e^{\pi^2 /4y}}{\pi \sqrt{\pi y}}\int_0^{\infty} e^{-z \cosh(u) -u^2/(4y)} \sinh(u) \sin(\frac{\pi u}{2y})du$$
then next define
$$ f(y,z)=\left( \frac{z}{S_0}\right)^{\nu/2}\frac{1}{4KT}\exp\left(-\frac{2(S0+z... |
I tried to solve Hamiltonian system ($Q$ is a vector of all generalized coordinates, $P$ - of generalized momentum)
$$
\frac{\mathrm{d} Q}{\mathrm{d} t}=\frac{\partial H}{\partial P} \\
\frac{\mathrm{d} P}{\mathrm{d} t}=-\frac{\partial H}{\partial Q}
$$
where
$$
H=\frac{1}{2} \sum_{i=1}^{n}\overrightarrow{p}_{i}^{2} + ... |
What's the best method to maximize the value of slow multivariate function? Here is what I know about the function:
Number of parameters is ~ 10.
It takes considerable amount of time to compute the value of the function for single variable set. Let's say 30 minutes.
Function seems to be concave against every individua... |
I need to find an equation for the upper bound of $\max \mathbf{w}^T\mathbf{x}_i, \; i=1, \dots N$.
where $\mathbf{w}$ and $\mathbf{x}_i$ are two vectors.
I need to find a function $f$ which holds the following inequality.
$\max \mathbf{w}^T\mathbf{x}_i \leq \mathbf{w}^T \mathbf{z}$
where $\mathbf{z} = f(\mathbf{x}_i),... |
I am currently trying to use iterative least squares to solve a system,
$y = Hx + v$
where $y$ is a vector of observations, $H$ is the design matrix, and $v$ is the observation error.
From my understanding, iterative least squares tries to minimize a cost $J$ where $J = \min (Hx-y)^2$.
My pseudocode for this is
while |... |
If one chooses to discetize the advection-diffusion (AD) equation using the standard Galerkin finite element method, stability issues may arise in cases of high Peclet number (i.e., high advection to diffusion ratio).
Other than using methods like SUPG, can one achieve stable AD solutions (with Galerkin FEM) through th... |
I was wondering if someone has implemented the "Tunneling algorithm" for the global minimization of a single variable function in Matlab.
I am hoping to implement it on $[B, A - \lambda I]$. Where $A$ is and $N\times N$ matrix, B is an $N\times M$ matrix, $I$ is the identity and $\lambda$ is the unknown variable in the... |
Suppose I have two sparse matrices, $A$ and $B$, of size $N \times N$. They each have the same sparcity pattern ("footprint"). They each also have values which in theory should be identical, but aren't due to machine precision error.
A simple example of this in MATLAB syntax:
% Dimensions of square, sparse matrices
N ... |
I am trying to solve the very simple one dimensional burgers equation which is:
$$\frac{\delta U}{\delta t} + \frac{\delta F}{\delta x} = 0$$
where the flux F of some variable U is defined as$$ F= \frac{U^2}{2}$$
If I consider a small control volume around the node i, then I should write the original equation as:
$$\fr... |
Suppose I have this matrix in Matlab R2013a
M = kron(A,B);
where A and B are $N \times N$ matrices, with $N$ a "big" number. Now, I just want to extract a submatrix of M, composed by taking just few rows from it
Msub = M(rows,:);
where rows is a vector of length $m \ll N$.
Q: Is there an efficient way, in Matlab R20... |
I'm new to factor analysis and I need to compute factor scores using Python. I have R code to compute scores and I want to adjust my Python code (decomposition.FactorAnalysis() settings) to get similar output.
R code:
data <-read.csv("test.csv", header=F)
col_names <- names(data)
drops <- c()
for (name in col_names){
... |
Time-explicit high order finite element/DG methods for the advection equation tend to have a timestep restriction which looks like
$$dt < C h/p^2$$
where $h$ is mesh spacing and $p$ is polynomial degree. I'm having trouble finding a similar order-dependent restriction for high order finite difference stencils. Is ther... |
I obtain numerical discrete data of the form
$$
S_{raw}(\omega) = \sum_{j}w_{j} \delta(\omega-\omega_{j})
$$
to compare the result with experimental data the delta peaks need to be broadened according to
$$
S_{broad}(\omega) = \int d\omega^{\prime} K(\omega,\omega^{\prime}) S_{raw}(\omega^{\prime})
$$
where $$ K(\omega... |
I am looking for a way to simulate behavioral economic models to illustrate the effects of changing parameters. I am familiar with statistical analysis (especially R), but I only have few programming skills beyond R. I think that if there is a way to achieve my goal (I'm not really sure if it is possible at all!) that ... |
I'm doing a 2D combustion hydrodynamic simulation and there's a hydrodynamic instability that should be triggered because of the particular physical properties of my system. The key to the instability are temperature gradients perpendicular to the flow direction of my problem. What is a good and "consistent" way to art... |
I need to calculate the Jacobian matrix of a subroutine F(U). Both F and U are of size N(=O($10^5$)). Using Tapenade, I differentiated the routine in tangent mode. I cannot calculate the full Jacobian directly because of the large memory requirement.
Is there a package that I can use to parse the differentiated FORTRA... |
Is there any universal method to fill this matrix for any $n$ value:
$\textbf{A} = \left[ \matrix{n & \sum x_i & \sum x_i^2 & \cdots & \sum x_i^n \cr
\sum x_i & \sum x_i^2 & \sum x_i^3 & \cdots & \sum x_i^{n+1} \cr
\vdots & \vdots & \vdots & \ddots & \vdots \cr
\sum x_i^n & \su... |
Consider a set of polytopes $P_i : i=1,2,...,k$ each of which has a
structure as $P_i:= \{(x_{i1},x_{i2},..., x_{in})\; |\; x_{ij} \in [a_{ij}, b_{ij}] \subseteq [0,1]\}\;\; \text{for all}\;\; j=1,...,n$ and $\sum_j x_{ij}=1$.
We define $P= CH (\cup_i P_i)$ where $CH$ stands for the convex hull.
On the other side... |
I am starting to get into scientific computing with a library called Deal.II and I was wondering what the community recommends as good source material that I can learn about scientific material.
About the Finite Element Method and how to setup problems within the code. How to think about the problems, etc.
|
I have the following LP:
$$
\begin{array}{ll}
\text{Minimize} & \sum_{j=1}^n x_j \\
\text{Subject to} & \sum_{j=1}^n a_{ij} x_j \geq b_i,~~~i\in\{1,\ldots,M\} \\
& 0 \leq x_j \leq 1,~~~j\in\{1,\ldots,n\}
\end{array}
$$
where all $a_{ij} \geq 0, \forall i,j$ and $b_i \geq 0,\forall i$, and these are kn... |
I've tried looking for efficient parallel algorithms to solve banded systems. SPIKE is a good example but it however requires that the band size is large.
Is there any efficient library implementing a parallel algorithm for n-diagonal systems (where n is less than 10)
I haven't found any implementations of Thomas' algo... |
I'm currently reading this paper, and I'm a bit confused about how they compute the accuracy of their algorithm.
In the aforementioned paper, they investigate the regularized long-wave equation:
$$
u_t + u_x + u u_x - u_{xxt} = 0 \tag{1}
$$
They discretize the grid by spacing $h$ and time step $\tau$, giving the grid p... |
I am currently writing my dissertation on different methods for pricing barrier options. As part of this, I have implemented a finite differences method for solving one partial differential equation, and another finite differences method for solving another partial differential equation.
I would like to create some plo... |
I have the optimization problem as below:
$$\begin{align}
&\text{maximize } \sum_{k=1}^{M} \alpha_k {R}_k\\
&\text{subject to: } \exp \left[ - (2^{{R}_k } -1) \left(\frac{\tilde{Z} g_{k} p_{\max} + \sigma^2}{g_{pu} p_{pu}} \right) \right] \leq q
\end{align}$$
$\alpha_k$ is the weight factor associated to the $R_k$.... |
We have a group of observations
$$y = f(x_1, x_2, x_3) \enspace .$$
We have also a forward model $y = f(x_1, x_2)$. The forward model does not include $x_3$ because $x_3$ might include dozens of parameters which we do not understand clearly.
First, we inverted parameter $x_1$ with the forward model $y = f(x_1, 0)$ embe... |
I need to get just a random vertex of a polytope. Any will do. The only way I can do this now is to pick a random function (say 0s) to maximize with scipy.optimize.linprog. However, this is wasteful, because I really don't care which vertex I get. I saw something in the docs about getting the internal state of the solv... |
I have attempted to code up the simple math required to plot the total field set up by an incident plane wave on a semi-infinite flat plate which can be found here.
To summarise:
$$\phi_s(r,\theta ) = e^{ikr}/2 \left( w\left[ e^{i\pi/4}\sqrt{2kr}\sin(\frac{\theta + \Theta}{2}) \right]+ w\left[ e^{i\pi/4}\sqrt{2kr}\sin(... |
I am parallelizing code to numerically solve a 5 Dimensional population balance model. Currently I have a very good MPICH2 parallelized code in FORTRAN but as we increase parameter values the arrays become too large to run in distributed memory mode.
I have access to a cluster with 15 nodes, where each node has two 8 ... |
I am solving a boundary value problem in 2D via an implicit finite difference scheme. Unfortunately, although the problem is well-posed and should have a unique solution, the condition number of the matrix to solve is through the roof (~10^15 for a highly simplified version that is just the 2D Poisson eqn.; otherwise m... |
I'm looking for a computationally efficient algorithm for solving the following type of assignment problem:
I have two sets of points. Set A has N points and set B has M points. I'd like to establish one-to-many assignments from A to B, where each element in A can have at most two and at least zero matches in B. Obviou... |
I'm trying to solve a generalized eigenvalue problem
$$Ax = \lambda Bx, \quad A = A^\top > 0,\; B = B^\top > 0$$
with $\lambda \approx \sigma$ using Rayleigh Quotient Iteration (RQI) (RQI is applied to $B^{-1/2}AB^{-1/2}$, but the $B^{-1/2}$ cancels from the final formulas):
$$
(A - \mu_k B) \tilde x_{k+1} = B x_k\\
x_... |
Suppose I'm optimizing for an unknown $x\in\mathbb{R}^k.$ I have a linear operator $A(\cdot)$ that maps $x$ to an $n\times n$ symmetric matrix, i.e., $A:\mathbb{R}^k\rightarrow\mathbb{R}^{n\times n}.$
I'd like to solve a problem of the form
$$
\begin{array}{rl}
\min_{x\in\mathbb{R}^k} & f(x)\\
\textrm{s.t.} & x\in\ma... |
I'm running a potential flow solver, and I have values of the velocity potential $\phi$ on the boundaries. I'd like to compute the spatial evolution kinetic energy in the system. In particular, I'd like to find
$$T(x) = \int \int_{-\infty}^{\eta(x,t)} \frac{1}{2}(\phi_x^2+\phi_z^2) \ dz \ dt.$$
Can I calculate this int... |
Matrix reorderings are important for many direct solvers. Sometimes the objective is to reduce the bandwith or the generated fill in by LU Decomposition. I am interested in a reordering which reduces the fill in of $A + A^{−1}$. Is there some work, or is it hopeless?
|
Consider the following equation on the circle:
$$\dfrac{\partial p(x,t)}{\partial t} = a(x)\dfrac{\partial p(x,t)}{\partial x} \equiv L(p) \enspace ,$$
where $L$ is the operator acting on $p(x,t)$.
Now, I would like to create a matrix of this operator $L$ using FFT/IFFT in Matlab. Note that since our domain is the circ... |
In all descriptions of the Lanczos vector, it's said that the starting vector is random.
But let's say I'm only interested in the eigenvector associated with the lowest eigenvalue (as is the case when using Lanczos to find the ground-state of a quantum mechanical system).
Wouldn't then any start vector that has some no... |
TLDR: Are these polynomials really harmonic polynomials, and how can I generate them?
Long version:
I want to describe an electrostatic potential $\Phi(x,y,z)$ over a source-free volume, by using a polynomial of the form
$$\begin{align}
\Phi(x,y,z) &= a_{000} + a_{100} x + a_{010} y + \dots + a_{123}xy^2z^3 + \dots \\... |
Let $D_{\nu}(.)$ is the parabolic cylinder function
(http://mathworld.wolfram.com/ParabolicCylinderFunction.html)
And $\Gamma(.)$ is the Gamma function.
Define
$s_y(\mu,\nu,t,z)=2^{\nu}\displaystyle\sum_{k=0}^{\infty}\frac{\Gamma(\nu+k)e^{-(\nu t+z+2kt)^2/(4y)}}{\sqrt{2\pi}y^{1+\mu/2}\Gamma(\nu) k!} D_{\nu+1}(\frac{\n... |
I am trying to follow an algorithm that is described in Elementary Quantum Mechanics in 1D.
I want to compute eigen-energies and functions in bound states in the basic case in rectangular potential well shown on page 99 as a simple example. I am doing my code in MATLAB. And I can't get the same solution as shown in pag... |
I am using variational data assimilation (4D-VAR) to estimate emissions of anthropogenic greenhouse gases using a rather complex atmospheric transport model. Hence, the optimal solution to my problem is obtained by minimizing a (non-linear) cost functional $J$.
The model is weakly nonlinear so I can expect the inverse ... |
I'm trying to solve the advection equation $$m_t+(\alpha m)_x=0$$ with $m(0,\cdot)=m_0$ numerically using the first order Godunov scheme. Hence I write $$m_j^{i+1}=m_j^i-\frac{dt}{dx}(m_{j+1/2}^i\alpha_{j+1/2}^i-m_{j-1/2}^i\alpha_{j-1/2}^i)$$ where $m_{j+1/2}^i=m_{j+1}^i$ if $\alpha_{j+1/2}^i<0$ and $m_j^i$ otherwise. ... |
I face to the following problem:
$$(1+u_x^2)u_{yy} - 2u_xu_yu_{xy} + (1+u_y^2)u_{xx}=0.$$ Problem needs to be discretized and assembled.
Does anybody know how to proceed in Matlab?
|
I'm investigating algorithms to make a mesh watertight for 3d printing. I'd be very excited to implement such algorithms. The initial input is a mesh which is not watertight and I want to understand and implement algorithms to transform it to make it suitable for 3d printing.
Here is a good explanation about watertight... |
This is not a typical question with a deterministic answer. If this is not the right place, feel free to close it.
For the past one year I have been working on various kinds of inverse problem. Most of them are related to parameter estimation, ranging from small linear differential equation to equations of fluid dynami... |
I am trying to improve the resolution of a Stokes problem (P2/P1 on unstructured mesh) defined by the matrix $M$:
$M=
\begin{pmatrix}
A_u & 0 & B_u \\
0 & A_v & B_v\\
B_u^T & B_v^T & 0
\end{pmatrix}$
Current Implementation
I am currently solving it using a Uzawa method, with a Krylov method accelerated by a preconditi... |
Let us say I want to compute the following expression by a numerical integration scheme:
$$
I = \int^{-x}_{-\infty} f(x + y) \, \mathrm dy - \int_{\mathbb R}\bigg(f(x+y) -f(x)\bigg)\, \mathrm dy
$$
for a range of $x$-values $x \in \mathcal O$ for some $\mathcal O \subset \mathbb R$, and where $f(x)$ is some function s... |
I am trying to solve one dimensional inviscid Burger's equation using adaptive mesh refinement. This is the PDE:
$$\frac{\delta U}{\delta t} + \frac{\delta F}{\delta x} = 0$$
where the flux F of the variable U is defined as$$ F= \frac{U^2}{2}$$
To solve this equation, I am defining a control volume around point i, then... |
I am wondering how Dirichlet boundary conditions in global sparse finite element matrices are actually implemented efficiently. For example lets say that our global finite element matrix was:
$$K =
\begin{bmatrix}
5 & 2 & 0 & -1 & 0 \\
2 & 4 & 1 & 0 & 0 \\
0 & 1 & 6 & 3 & 2 \\
-1 & 0 & 3 & 7 & 0 \\... |
I am trying to implement my own multigrid method in fenics. Is there any "smart/ fenics" way how to assemble subdomains and obtain restriction/ prolongation operators ?
Thanks!
|
Consider a planar graph, where each node is associated with a weight. I would like to partition the graph such that the sum of the node weights in each group satisfy a minimum requirement. However, I would also like as much 'resolution' as possible - that is, I want to maximize the number of groups (minimize the number... |
I am solving elliptic PDE problem, for which, Euler scheme looks as following:
$$ \nabla [\gamma ( |\nabla u|^2) \nabla u] = 0,$$
where
$$\gamma(|\nabla u|^2) = (1 + |\nabla u|^2)^{-1/2}. $$
I am aiming to define minimization problem for problem above. Does anybody have any suggestion how it should look like? Or some ... |
I'm just starting at scientific computing and I'm seeing that results can be generated merely by plotting the variables. Of course more variables lead to more axes/dimensions so e.g. a three variable system could be or would need to be modeled as a 3D plot.
What I was thinking though was e.g. a 2D case. Does visualizat... |
The governing equations are listed here of my notes on page 4. It's a reproduction of other's paper which solves the equations with COMSOL. The problems arise when I want to solve for the consistent initial condition of the algebraic components, $\phi_1$ and $\phi_2$. They consist of a kinetic reaction term for five re... |
In my answer to a question on MSE regarding a 2D Hamiltonian physics simulation, I have suggested using a higher-order symplectic integrator.
Then I thought it might be a good idea to demonstrate
the effects of different time steps on the global accuracy of methods
with different orders,
and I wrote and ran a Python/Py... |
Multigrid introductions normally use a rectangular grid. Interpolation of values is then straight forward: Just interpolate linearly on the edge between two adjacent nodes of the coarse grid to find the value of the fine grid node on that edge.
For an FEM application I have a grid which is "topologically" rectangular s... |
I have been trying to solve the following nonlinear ordinary differential equation:
$$-\Phi''-\frac{3}{r}\Phi'+\Phi-\frac{3}{2}\Phi^{2}+\frac{\alpha}{2}\Phi^{3}=0$$
with boundary conditions
$$\Phi'(0)=0,\Phi(\infty)=0.$$
My solution is supposed to reproduce the following plots:
Now, to produce the plots given above, ... |
As a general programming enthusiast and aspiring Bioinformatician student I have an intermediate understanding of computing (languages) as well as Java, and to a lesser extent C++. Having knowledge in a declarative as SQL and the intent to learn a functional as R; I found myself in need of interpreted/scripting languag... |
I have a 3000 x 2301 matrix 'xfinfin' in MATLAB that I want to plot in the following way:
for i=1:2301
ome = 0.4 + 0.001*(i-1);
plot(ome,xfinfin(:,i),'k.');
hold on
end
But this very quickly leads to MATLAB using 100% RAM and an error shows up in the MATLAB commnad line 'Out of memory'.
Basically, this al... |
I have this type of question (ODE-constrained optimization) to solve:
$g(x,p)=0$ is the simulation, where $x$ is state variable and $p$ is parameters aimed to optimize;
$f(x)$ is the objective function (a measure of merit).
I read that some people deal with this by discretize the ODE, but there seems another method cal... |
I got this problem thrown at me, unfortunately I lack context at the moment but I thought Maple or Mathematica would solve it anyways.
I have a function $f$ over $x$ and $y$ such as this (Maple)
f := (y-1.298*exp(-1.311*x)-.3435*exp(.3602*x))*(x-3.059865611)*(y+1.875*exp(-.8384*x)+0.7033e-1*exp(.838*x))*(y+.5774*x+3.53... |
A while ago I came up with an algorithm which can be used to numerically solve optimal control problems, which basically came down to discretizing the control input $u(t)$ and interpolating this to get a continuous function. I tried to optimize the cost function for each discrete value by using the golden search method... |
I want to stop immediately an MPI program, that has N processors and each processor runs a different algorithm (with different computational complexities).
Processors share information to each other using an unidirectional token ring topology. As soon as one processor ends it should notify its neighbor and all processo... |
I am trying to apply SVD to large sparse matrices. I already compared the performances of Propack and irlba to those of the matlab svd and svds. These two packages enhance significantly the computing time but I still have to handle the memory issue. Therefore, I am looking for a free matrix SVD algorithm which allows m... |
My faculty advisor recommended that I take a look at the lattice Boltzmann method as an introduction to scientific computing and potentially an undergraduate honors thesis topic. I cooked up a some Java code (kind of unconventional, but I only know Java and Python right now), and I had a simple 2D simulation. Upon test... |
When setting up a finite element system you have to use quadrature to calculate the integrals. I'm having trouble understanding what order rule to use.
I know of some rules of thumb, for example with the 1D Hemholtz you end up with the matrix $M + S$, where $M_{ij} = (\phi_i, \phi_j)$ and $S_{ij} = (\phi_i', \phi_j')$.... |
Is there an efficient way to measure similarity/distance between two sequences of ranked numbers/letters. The two sequences are of different length, and only have some elements in common?
For example, if I have three rank ordered numeric sequences like this:
sequence A: 1,2,3,4,5,6
sequence B: 2,3,4,5,6,7,8,9,10
sequen... |
I am trying to do a Molecular Dynamics Simulation of a complex fluid, confined between solid surfaces. I would like to find the flow rate as a function of fluid film thickness, $h$, for a plane poiseuille flow. (The flow rate is not expected to show an $h^3$ dependence, in general, if $h$ is small, in the order of a fe... |
I am basically looking for a good open source C++ IDE with scientific and visualization libraries built in. Can any one suggest few projects?
|
I understand that the constant in the Courant-Friedrichs-Lewy condition is defined as $\mathrm{CFL} = \frac{u \Delta t}{\Delta x}$, where $u$ is the principal coefficient. I came across this post:
Estimating the Courant number ...,
which basically suggests that the CFL number can be used to decide on the time step size... |
I'm trying to develop an inferential procedure for a multivariate dependent Markov process. Basically, the procedure could be considered as a non linear regression, with a known dependence structure among observation belonging to the same time-point and independent from the others. The non linear trend correspond to a... |
I need to calculate $\log(\det (\mathbf M_i))$ where the $\mathbf M_i$'s are large sparse matrices, which are real, symmetric and positive semi-definite. I hope to have between $10$ and $100$ of those. Physically, each $\mathbf M_i$ is the stiffness matrix of a large system, and if it helps, I know how to write it as ... |
I have this very simple ODE-contrained optimization problem:
$h(x,x',p,t) = x'-A(p)x-b(p) = 0$, the constraint
$g(x(0)) = x_0$, the initial condition with no parameters involved
$F = \int (X-X_{obs})^2 dt$, the objective equation
According to adjoint method, I need to
Integrate constraint equation:
$$x'=A(p)x+b(p... |
As far as I know, for getting a unique solution to a PDE we should impose some boundary conditions to the PDE. "The number of required auxiliary conditions is determined by the highest order derivative in each independent variable. "
My questions are: In any numerical method, especially in finite element method, is it... |
For a grid-based numerical simulation, I am looking for a load balancing/partitioning algorithm that not only distributes my grid elements, but also determines (approximates) their respective weights. Does anyone know of existing approaches for this problem or can give me some pointers into which kind of mathematical f... |
I derived a bicopter dynamical model with two servos and two BLDC motors. And now am trying to simulate it using Matlab.
As base for simulation I used this paper and this code
Unfortunately, the obtained model always blowing up in case of asymmetrical control input signals. For example, with identical speed on both pro... |
Can one employ convex optimization for symmetric but not positive definite problems? I tried using MATLAB's quadprog() function to solve this problem:
$\mathrm{min}\frac{1}{2}\mathbf{x}^T\mathbf{H}\mathbf{x}+\mathbf{x}^{T}\mathbf{g}$
$\mathrm{s.t.} \mathbf{Ax}=\mathbf{b}$
Where $\mathbf{H}$ is a symmetric but not posi... |
I am analysing the stability of a series of 1D linear equations of the form
\begin{equation}
\frac{d}{dt} x = A x
\end{equation}
discretised using upwind and central finite volume methods, etc, with the explicit Euler time stepping scheme (to begin with).
What I have done so far is that I have calculated the eigenva... |
I have a simple C code with many function calls, which I profiled using gprof.
% cumulative self self total
time seconds seconds calls s/call s/call name
71.93 907.85 907.85 201280 0.00 0.00 ForceCalcs
2.61 1237.18 33.00 1258 0.03 1.00 ... |
I have the following optimization problem
$$\begin{align}
&\min_{ X_{1}, \dots,X_{k} } \max_{ \theta, \phi } \left|P_{d}(\theta,\phi) - \sum_{k=1}^K \operatorname{Tr}(a_{k}(\theta,\phi)a_{k}^{H}(\theta,\phi)X_{k})\right|\\
&\text{subject to} \sum_{k=1}^K \operatorname{diag}(X_{k}) = \frac{E}{M_{t}N_{t}-(K-1)} 1_{M... |
Initially I modeled my objective function as
$$\arg \min \operatorname{Var}(f(x),g(x)) + \operatorname{Var}(c(x),d(x)) + \cdots$$
where $f$, $g$, $c$, $x$ are linear functions.
To be able to solve the problem with linear solvers I have change the problem as follows ($\operatorname{abs}$ stands for absolute value):
$$\... |
I have a mixed integer quadratic problem and my objective function is as follows
$$\arg \min \operatorname{Var}(f(x),g(x)) + \operatorname{Var}(c(x),d(x)) + \cdots$$
where $f$, $g$, $c$ $d$ are linear functions and $Var$ indicates variance and $x$ is a vector of 3000 binary variables.
If I want to solve the problem wit... |
I am trying to enforce the discrete maximum principle (i.e., ensuring non-negative concentrations) for diffusion-type problems that have an anisotropic diffusivity tensor (e.g., tensor dispersion from velocity). For the standard diffusion equation, I could employ convex optimization since I will have a symmetric and po... |
Considering any two cylinders, defined as: the center of their bottoms $A_i$, the radius of their bottom $R_i$, the unit vector $W_i$ of their axis direction, and the length $L_i$ of the cylinders, where $i=1,2$:
what is the necessary and sufficient condition of the intersection of the two cylinders?
I want to numeric... |
I am working to solve Poisson's equation in 2D axisymmetric cylindrical coordinates using the Jacobi method. The $L^2$ norm decreases from $\sim 10^3$ on the first iteration (I have a really bad guess) to $\sim 0.2$ very slowly. Then, the $L^2$ norm begins to increase over many iterations.
My final matrix is weakly dia... |
I want to ask questions like 'what family is this species in, and which other species are in this family?'.
I am aware of Wikispecies/Wikidata but are there any other good open and linked databases/APIs that would be worth looking at?
|
I have the system which is described by several ODE. The solution looks good for me. Now I need to implement the sensitivity analyses of parameters which I used in the model. Therefore, I have the following questions:
I have an output in the form of the vector(solution in time). But the sensitivity routines (such SALi... |
This question is probably related to chemical engineers that are around this forum.
I am looking into writing a solver for a precipitation reaction (struvite to be precise): A+B+C+D <=> E+F
A, B, C, D, F - liquids; E - solid (for now I ignore the 'solid' part and focus only on mass transfer)
So far I have tried to avoi... |
The equation at the left of the interface is
\begin{equation}
\displaystyle\frac{\partial C_i}{\partial t} = D_i \nabla^2 C_i - z_i \frac{D_i}{RT}F \nabla \cdot (C_i \nabla \phi_2)
\end{equation}
The equation at the right of the interface is
\begin{equation}
\displaystyle\frac{\partial \epsilon C_i}{\partial t} = \nabl... |
I have several files of data created by LabView of hydraulic pressure testing over the course of a few days. This data is mostly time with various pressure and temperature measurements.
Can you recommend software that will plot several hours worth of data and then let me zoom/pan and select certain intervals? I need to... |
So first off:
*** This code is not being used in production software.
It is a personal project of mine, trying to understand
approximation theory and advanced curve fitting.
In other words, I'm trying to understand how it works,
not trying to get a currently existing solution.
So I have been trying to implement the... |
I have implemented in matlab a neural network that uses rprop's algorithm to update its weights.
Strangely the error on the training set does not converge to a local minimum, but oscillates.
Here is the graphics plot of the error function on trainingset:
Here is the rprop's algorithm:
function [net] = resilientBackPro... |
I have a simple question that is really hard to Google (besides the canonical What Every Computer Scientist Should Know About Floating-Point Arithmetic paper).
When should functions such as log1p or expm1 be used instead of log and exp? When should they not be used? How do different implementations of those functions d... |
I have implemented in matlab a neural network that uses rprop's algorithm to update its weights.
Strangely the error on the training set does not converge to a local minimum, but oscillates.
Here is the graphics plot of the error function on trainingset:
Here is the rprop's algorithm:
function [net] = resilientBackPro... |
Is the projection method of integrating Navier-Stokes equations exact?
Take the incompressible flow equations:
$$
\frac{\partial\mathbf{u}}{\partial t} = -\mathbf{u}\cdot \nabla \mathbf{u} -\nabla p + \mu \Delta \mathbf{u}
\\
\nabla\cdot\mathbf{u} = 0
$$
along with some meaningful boundary conditions. Using a projecti... |
I have to do some numerical calculus using gamma functions. I am using the tgamma incluided in the C++ cmath library. The problem is that the arguments inside the gamma functions are positive and big, so I always get a nan.
I know that I can use a log-gamma function, lgamma in C++, to avoid numerical overflow during th... |
I am a newbie in DFT calculations. I did potential energy scans with GAUSSIAN 09 for different dimers, i.e.
# b3lyp/6-31G(d) scan test
title
0 1
Ni 0.0 0.0 0.0
Ni 0.0 0.0 r
r 20.0 19 -1.0
Unexpectedly, the energy at large distances does not converges to zero, but some finite negative value. ... |
What type of numerical methods are there to solve PDE of the sorts of:
$$\begin{align}
&f(x,t,u(x,t))u_{xx} - g(x,t,u(x,t))u_{tt} = F(x,t,u(x,t))\\
&u(x,0)=G_1(x)\\
&\frac{\partial u(x,0)}{\partial t}=H_1(x)\\
&u(0,t)=G_2(t) , \frac{\partial u(0,t)}{\partial x} = H_2(t)
\end{align}$$
Where $f,\ g,\ F,\ u \in C^\infty... |
Background:
I have only built one working numeric solution to 2d Navier-Stokes, for a course. It was a solution for lid-driven cavity flow. The course, however, discussed a number of schemas for spatial discretizations and time discretizations. I have also taken more symbol-manipulation coursework applied to NS.
Som... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.