<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel rdf:about="https://community.wolfram.com">
    <title>Community RSS Feed</title>
    <link>https://community.wolfram.com</link>
    <description>RSS Feed for Wolfram Community showing questions tagged with Tuning and Debugging with no replies sorted by active.</description>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3721357" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3635801" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3562641" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3403358" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3353494" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3349604" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3311941" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3292107" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3282034" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3227384" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3222475" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3222391" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3193984" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3176227" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3151464" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3060546" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/3025705" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/2940172" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/2903058" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/2759635" />
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3721357">
    <title>Can&amp;#039;t start kernels and getting an error: Unable to communicate with closed link</title>
    <link>https://community.wolfram.com/groups/-/m/t/3721357</link>
    <description>In[83]:= LaunchKernels[]&#xD;
    &#xD;
    During evaluation of In[83]:= LinkObject::linkd: Unable to communicate with closed link LinkObject[&amp;#039;/Applications/Wolfram.app/Contents/MacOS/WolframKernel&amp;#039; -noinit -subkernel -wstp,2002,23].&#xD;
    &#xD;
    During evaluation of In[83]:= LinkObject::linkd: Unable to communicate with closed link LinkObject[&amp;#039;/Applications/Wolfram.app/Contents/MacOS/WolframKernel&amp;#039; -noinit -subkernel -wstp,2003,24].&#xD;
    &#xD;
    During evaluation of In[83]:= LinkObject::linkd: Unable to communicate with closed link LinkObject[&amp;#039;/Applications/Wolfram.app/Contents/MacOS/WolframKernel&amp;#039; -noinit -subkernel -wstp,2004,25].&#xD;
    &#xD;
    During evaluation of In[83]:= General::stop: Further output of LinkObject::linkd will be suppressed during this calculation.&#xD;
    &#xD;
    During evaluation of In[83]:= Parallel`Developer`ConnectKernel::failinit: 8 of 8 kernels failed to initialize.&#xD;
    &#xD;
    Out[83]= {}&#xD;
    &#xD;
    In[82]:= ParallelKernels[]&#xD;
    &#xD;
    Out[82]= {}&#xD;
    &#xD;
    In[80]:= AbsoluteTiming[&#xD;
      counts2X2X2sList = ParallelMap[&#xD;
        ArrayReshape[ (* Convert 1X8 counts into 2X2X2 counts; &#xD;
          doing it this weird way - Flatten first - is much faster. *)&#xD;
          Flatten@#,&#xD;
          {Length@#, 2, 2, 2}&#xD;
          ] &amp;amp;,&#xD;
        counts1X8sList&#xD;
        ]&#xD;
      ][[1]]&#xD;
    &#xD;
    During evaluation of In[80]:= ParallelMap::nopar: No parallel kernels available; proceeding with sequential evaluation.&#xD;
    &#xD;
    Out[80]= 0.040537</description>
    <dc:creator>Mark Tuttle</dc:creator>
    <dc:date>2026-05-24T12:29:20Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3635801">
    <title>Kernel freeze when changing AudioGenerator noise color</title>
    <link>https://community.wolfram.com/groups/-/m/t/3635801</link>
    <description>I have a few code samples which freeze or crash my kernel on evaluation, can anybody confirm that this isn&amp;#039;t a local issue for me?&#xD;
&#xD;
Discrete:&#xD;
&#xD;
    AudioGenerator[{&amp;#034;Color&amp;#034;, AudioGenerator[TimeSeries[{1}, {1}]]}]&#xD;
&#xD;
Continuous:&#xD;
&#xD;
    AudioGenerator[{&amp;#034;Color&amp;#034;, AudioGenerator[{&amp;#034;Sawtooth&amp;#034;, .4, 5}]}]</description>
    <dc:creator>Joseph Stocke</dc:creator>
    <dc:date>2026-02-06T21:20:51Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3562641">
    <title>Mathematica 12, BenchmarkReport[] fails at FFT where it previuosly was fine.  Win 11 upgraded on VM</title>
    <link>https://community.wolfram.com/groups/-/m/t/3562641</link>
    <description>**The problem**&#xD;
&#xD;
I run Mathematica 12 from home via a Win11 VM on Proxmox.  This configuration has run fine for years.  Recently during an upgrade to Win11 25H2 I went to test to make sure everything was functional with a quick BenchmarkReport[] but it caused the kernel to die at Test 3, FFT.  Its a very repeatable failure.&#xD;
&#xD;
Just before upgrading to 25H2 I had changed my processor type for this VM to x86-64-v3 +aes from -v2 + aes. I had issues on another vm where Win11 didnt want to upgrade with v2.&#xD;
I didnt originally run the processor as &amp;#034;host&amp;#034; as I am running dual E5-2699v4 Xeons, Win11 doesnt support by age despite having all the instructions needed.&#xD;
&#xD;
I have used this VM with Win10 and Win11 for years running Mathematica without issue.  In the past I would use BenchmarkReport[] as a quick check of functionality after any upgrades or changes.  This is the first time its failed.&#xD;
&#xD;
A quick test using ParallelTable[sin[x],{x,0,pi,10^-6}] works fine&#xD;
&#xD;
A quick test of Fourier[{1, 1, 2, 2, 1, 1, 0, 0}] works fine&#xD;
&#xD;
But a simple,&#xD;
&#xD;
    Needs[&amp;#034;Benchmark`&amp;#034;]&#xD;
    BenchmarkReport[]&#xD;
&#xD;
Fails while calculating Step 3, FFT.  The kernel simply die with no error message or warning.  If I watch carefully with Task Manager it looks like the kernel dies, Mathematica recreates the kernel, then it dies again immediately.&#xD;
&#xD;
I also tried running this command through mathscript with -verbose but it gives me no additional details why its dying.&#xD;
&#xD;
I went back and tested some older notebooks I had.  One of the first ones I tried died during a NonLinearModelFit of a PieceWise function with Sin[]s.  &#xD;
&#xD;
    Piecewise[{&#xD;
      {&#xD;
       y0 + (&#xD;
         A1 Sin[ 2 \[Pi] ( x - x1)/t1] Sin[ 2 \[Pi] ( x - x2)/t2]&#xD;
         ) + A3 Sin[2 \[Pi] (x - x3)/t3],&#xD;
       x &amp;gt;= xon&#xD;
       },&#xD;
      {y0, x &amp;lt; xon}&#xD;
      }]&#xD;
&#xD;
This had worked in the past but now it dies just like BenchmarkReport, the kernel dies with no errors.&#xD;
&#xD;
**Fixes tried**&#xD;
&#xD;
So, I set the cpu back to v2 + aes for the vm config in proxmox but the kernel still dies.&#xD;
&#xD;
Set the cpu to Host in case its an issue with AES being passed correctly but it still dies&#xD;
&#xD;
I had Ballooning memory on so I turned it off, no change&#xD;
&#xD;
I had NUMA on so I turned it off, no change&#xD;
&#xD;
I uninstalled, reinstalled Mathematica 12.0 but it still fails&#xD;
&#xD;
I installed a demo copy of Mathematica 14.3, BenchmarkReport[] and my notebook run without issue.&#xD;
&#xD;
&#xD;
**System Info**&#xD;
&#xD;
Running a network version of Mathematica 12.0 with MathLM on another VM for the license.  License is for 2 instances and 16 kernels.&#xD;
&#xD;
The VM is running under proxmox 8.4.14.  The vm was just recently upgraded to Win11 25H2 but I am not sure when I last ran BenchmarkReport[].  I have run BenchmarkReport[] on this vm multiple times with some older flavors of win11 but I cant remember when I last ran it.&#xD;
&#xD;
I had recently installed the virtio drivers for this vm on the previous Win11 version but I hadnt run Mathematica since then.  Could be a contributing factor.&#xD;
&#xD;
Proxmox has gone through a recent upgrade with a reboot of the host.  I hadnt tried test Mathematica afterwards.  Could be a contributing factor.&#xD;
&#xD;
The vm has been tested with cpu set to Host, x86-64-v2+aes, x86-64-v3+aes, numa on and off, ballooning on and off, with 32GB memory configured for the vm.  This vm is set to get 2 processors of 8 cores each,&#xD;
&#xD;
The vm is only running microsoft virtual graphic drivers and is only accessed via remote desktop, not SPICE.&#xD;
&#xD;
As far as I can tell Win11 is working as expected.  I am considering a fresh install of Win11 if no better ideas surface.&#xD;
&#xD;
The host system is dual E5-2699 v4 with 512GB.  The host system runs a mix of vms and containers.&#xD;
&#xD;
**Summary**&#xD;
&#xD;
I know this is probably a very weird edge case of using a VM with such an old version of Mathematica.  The kernel dying does seem to fail for more than just Benchmark so its most likely not a single package responsible.  The failure is limited to Mathematica 12 as far as I can tell.  &#xD;
Just wanted to figure this our before I start embarking on a bunch of calculations.&#xD;
&#xD;
Any thoughts are appreciated.</description>
    <dc:creator>Mike Morrell</dc:creator>
    <dc:date>2025-10-19T19:10:08Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3403358">
    <title>Optimization of eigenvalue calculation for large matrices</title>
    <link>https://community.wolfram.com/groups/-/m/t/3403358</link>
    <description>I am working on a project that involves a high-dimensional matrix, pTA, of size 8*(p+2). I attempted to compute the sum of its negative eigenvalues using a supercomputer with 128 GB of RAM. For p=300, the computation took around 4 hours, and the memory usage reached 95%. However, I have realized that p=300 is insufficient for my research, and I need to set p=700. Given that the supercomputer struggled with p=300, I am certain it will not be able to handle p=700.&#xD;
&#xD;
I suspect that my Mathematica code is not optimized, which may be causing excessive memory usage and long computation times. Specifically, I believe that in my ParallelTable loop, Mathematica is computing all eigenvalues at each step, leading to inefficiencies.&#xD;
&#xD;
Can someone help me optimize my program to make it significantly faster and less memory-intensive, so it can handle larger values of p efficiently?&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/88e46108-9791-44ae-96d4-80ce3ea4746b</description>
    <dc:creator>Reza rho</dc:creator>
    <dc:date>2025-03-03T10:33:36Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3353494">
    <title>Is there a way to improve wolframscript startup time?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3353494</link>
    <description>I just began experimenting with running wolframsrcipt on Macos, so far the startup time is very disappointing. I wrote the following script:&#xD;
    &#xD;
    #!/usr/local/bin/wolframscript &#xD;
    Print[&amp;#034;hello&amp;#034;]&#xD;
&#xD;
Running this script takes roughly five seconds, consistently.  For instance, here I time the script from bash:&#xD;
&#xD;
    ~/bin # time ./hello.wls&#xD;
    hello&#xD;
    real    0m4.809s&#xD;
    user    0m0.173s&#xD;
    sys     0m0.049s&#xD;
&#xD;
Here is the version info for my installation of wolframscript:&#xD;
&#xD;
    ~/bin # wolframscript -info&#xD;
    Wolfram 14.1.0 Kernel for Mac OS X x86 (64-bit)&#xD;
    Copyright 1988-2024 Wolfram Research, Inc.&#xD;
&#xD;
Is this typical performance? A five second startup for a trivial script is a deal breaker for me. If anyone can suggest ways to make this faster, or to diagnose the reasons for the slow startup I&amp;#039;d love to explore them. On the other hand, if this is the expected level of performance I&amp;#039;ll explore other avenues for my scripting needs. &#xD;
&#xD;
Thank you.&#xD;
&#xD;
David Cabana</description>
    <dc:creator>David Cabana</dc:creator>
    <dc:date>2025-01-08T19:05:18Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3349604">
    <title>Rapid expansion and collection of large expressions</title>
    <link>https://community.wolfram.com/groups/-/m/t/3349604</link>
    <description>Main goal of attached code is to expand expression *multipliedEq[N,h,t]* which is generated using parameters *N = wkbrzad* and *h = 2  ** *wkbrzad - 2* and subsequently collect expression by *t* in the most efficient way possible. Below, I include the part of my code which allows to generate the formula of *multipliedEq[N,h,t]*:&#xD;
&#xD;
    dim = 6;&#xD;
    j = 0;&#xD;
    l = 1; &#xD;
    f[r_] := 1 - r^(3 - dim);&#xD;
    Q[r_] := ω^2 - f[r] * ((l * (l + dim - 3)) / r^2 + ((dim - 2) * (dim - 4)) / (4 * r^2) + ((1 - j^2) * (dim - 2)^2) / (4 * r^(dim - 1)));&#xD;
    V[r_] = -Q[r];&#xD;
    QntaPochodna[r_, n_Integer] := QntaPochodna[r, n] = If[n == 0, Q[r], f[r] * D[Expand[QntaPochodna[r, n - 1]], r]];&#xD;
    pierwszapochodna[r_] = QntaPochodna[r, 1] // Expand;&#xD;
    aa = Rationalize[Solve[pierwszapochodna[r] == 0, r, Reals] // N,0];&#xD;
    peak = Last[aa][[1]];&#xD;
    drugapochodna = (QntaPochodna[r, 2] // Simplify) /. peak;&#xD;
    k = (1 / 2) * drugapochodna;&#xD;
    s[n_, r_] :=(2 * QntaPochodna[r, n]) / (n! * drugapochodna)&#xD;
    ss[n_, r_] := (1 / 4) * s[n, r] * (4 * k)^((2 - n) / 4) * Exp[n * I * Pi / 4]&#xD;
    QQ[N_,t_]=\[Nu]+(1/2)-(1/4)*t^2+I*Sum[e^((2*n-1)/2)*ss[2*n+1,r]*t^(2*n+1)+e^n*(ss[2*n+2,r]*t^(2*n+2)-I*\[CapitalLambda][n+1]),{n,1,N-1}];&#xD;
    A[n_,t_]:=Sum[a[n,2*j]*t^(n+1-2*j),{j,0,Min[n, Floor[(n+1)/2]]}]&#xD;
    g[h_,t_]:=t+Sum[e^(n/2)*A[n,t],{n,1,h}]&#xD;
    \[Nu] = 1;&#xD;
    lele[N_, h_, t_] = (Inactivate[(D[g[h, t], {t, 3}])]/(2*Inactivate[(D[g[h, t], t])]) - &#xD;
        (3/4)*(Inactivate[D[g[h, t], {t, 2}]]/Inactivate[D[g[h, t], t]])^2 + &#xD;
        ((1/2) + \[Nu] - ((Inactivate[g[h, t]])^2/4))*(Inactivate[D[g[h, t], t]])^2 - &#xD;
        QQ[N, t]);&#xD;
    multipliedEq[N_,h_,t_] = Map[&#xD;
      #*Inactivate[D[g[h, t], t]]^2 &amp;amp;, &#xD;
      List @@ lele[N,h,t]&#xD;
    ];&#xD;
    multipliedEq[N_,h_,t_] = Activate[multipliedEq[N,h,t]//Total]//Simplify;&#xD;
Next step is to generate a full equation for parameters *N* and *h* which are explicitly related to *wkbrzad* value:&#xD;
&#xD;
    wkbrzad=6;&#xD;
    maxOrder=2*wkbrzad - 2;&#xD;
    multipliedEq2=multipliedEq[N, h, t]/. h -&amp;gt; 2*wkbrzad - 2 /. N -&amp;gt; wkbrzad /. peak /. \[CapitalLambda][c_] -&amp;gt; a[2*c - 2, 2*c];&#xD;
    &#xD;
And here goes my procedure which expands and collects the *multipliedEq[N,h,t]* by *t*:&#xD;
&#xD;
    customProcess[equation_, e_, maxOrder_] := &#xD;
     Module[{expandedEquation, truncatedEquation},&#xD;
      expandedEquation = Normal[Series[equation, {e, 0, maxOrder/2}]];&#xD;
      truncatedEquation = &#xD;
       Collect[expandedEquation /. e^n_ /; n &amp;gt; maxOrder/2 :&amp;gt; 0, e];&#xD;
      truncatedEquation&#xD;
    ];&#xD;
       praw1 = a_*e^_. -&amp;gt; a;&#xD;
       ewspolczynniki = Collect[List @@ customProcess[multipliedEq2, e, maxOrder] /. praw1, t];&#xD;
&#xD;
Unfortunately, the higher value of wkbrzad is (e.g. *wkbrzad = 100)*, the more time *customProcess* consumes to expand and collect. This is expected since a higher value of *wkbrzad* generates more terms to collect. However, there might be someone with a more sophisticated approach to handle such expansion and collection problems efficiently.&#xD;
&#xD;
I tried to apply idea from [here][1], but it was not fast enough:&#xD;
&#xD;
    customProcess[equation_, e_, maxOrder_] := &#xD;
     Module[{expandedEquation, truncatedEquation},&#xD;
      expandedEquation = ParallelMap[Series[#, {x, 0, maxOrder/2}] &amp;amp;, equation, Method -&amp;gt; &amp;#034;ItemsPerEvaluation&amp;#034; -&amp;gt; 15];&#xD;
      truncatedEquation = &#xD;
       Collect[expandedEquation /. e^n_ /; n &amp;gt; maxOrder/2 :&amp;gt; 0, e];&#xD;
      truncatedEquation&#xD;
    ];&#xD;
    &#xD;
&#xD;
&#xD;
    &#xD;
&#xD;
&#xD;
  [1]: https://mathematica.stackexchange.com/questions/177278/fast-expansion-of-large-expressions</description>
    <dc:creator>Maciej Kozyra</dc:creator>
    <dc:date>2025-01-02T15:31:33Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3311941">
    <title>Increasing efficiency of Monte Carlo simulation of stochastic differential equation</title>
    <link>https://community.wolfram.com/groups/-/m/t/3311941</link>
    <description>Thanks in advance for you interest,&#xD;
&#xD;
I&amp;#039;m seeking advice if there are ways to speed up the computation of my simulation, without reducing accuracy.&#xD;
&#xD;
I&amp;#039;ve been producing a simulation of an SDE of the Ornstein-Uhlenbeck process on a regular simplex. In particular, I look at a simplex with $m$ number of spatial dimensions, with the stochastic process $x$ starting at a uniform random location and evolving form there a tendency mean reversion. Further, the point of reversion changes halfway through the simulation. &#xD;
&#xD;
Because of the unusual domain the best way to get at this is through simulating many replicates and averaging them together (in fact, I&amp;#039;m interested in a function $R(x)$ of the process). &#xD;
&#xD;
However, I&amp;#039;ve had difficulty getting the standard error of the simulation low enough to for my purposes (finding min and max values over input parameter combinations). The levers I&amp;#039;ve been playing with are (1) number of replicates, (2) the time increment of simulation, (3) the SDE simulation method (e.g. Milstein). &#xD;
&#xD;
What I&amp;#039;m seeking is advice on is if there are ways I can change my code to induce quicker computation, without sacrificing accuracy (e.g., reducing number of replicates makes things quicker but less accurate). &#xD;
&#xD;
Thanks again for any input:&#xD;
&#xD;
    (** Computes \[CapitalEpsilon][R(X)] **)&#xD;
    &#xD;
    (* \[Eta],\[Kappa],m,q,T are input parameters *)&#xD;
    (* \[Eta]: upper limit of a simplex side *)&#xD;
    (* \[Kappa]: rate of mean reversion *)&#xD;
    (* m: number of spatial dimensions *)&#xD;
    (* T: time limit *) &#xD;
    &#xD;
    (* \[CapitalDelta]t: the time increment of the SDE simulation *)&#xD;
    (* reps: number of replicate simulations *) &#xD;
    &#xD;
    \[ScriptCapitalE]R[\[Eta]_, \[Kappa]_, m_, q_, &#xD;
      T_, \[CapitalDelta]t_ : 0.01, reps_ : 10^4] :=&#xD;
     Block[{xopt0, xopt1, F, R, x0, xs, xts, B, M, \[Sigma], \[Mu], proc, &#xD;
       RTs, t, \[Mu]0, \[Mu]1},&#xD;
      &#xD;
      (** produces random initial condition for each replicate **)&#xD;
      x0 = Map[\[Eta]*Join[#, {1 - Total[#]}] &amp;amp;, &#xD;
        RandomVariate[DirichletDistribution[ConstantArray[1, {m}]], reps]];&#xD;
      &#xD;
      (** produces label of each spatial variable: X_1,X_2,...,X_m *)&#xD;
      xs = Table[Symbol[&amp;#034;x&amp;#034; &amp;lt;&amp;gt; ToString[i]], {i, m}];&#xD;
      xts = Map[(#[t] &amp;amp;), xs];&#xD;
      &#xD;
      &#xD;
      (** produces the deterministic dynamics and noise correlation \&#xD;
    matrices  **)&#xD;
      (* mean reversion point is called xopt - &#xD;
      there are two because dynamics change halfway *)&#xD;
      xopt0 = ConstantArray[\[Eta]/m, {m}]; &#xD;
      xopt1 = &#xD;
       Clip[If[q &amp;lt; 1.00, &#xD;
         Prepend[ConstantArray[\[Eta]/m - &#xD;
            1/m Log[(m - 1) q/(1 - q)], {m - 1}], \[Eta]/&#xD;
           m + (m - 1)/m Log[(m - 1) q/(1 - q)]], &#xD;
         Prepend[ConstantArray[0, {m - 1}], \[Eta]]], {0, \[Eta]}]; &#xD;
      &#xD;
      (* matrices constrain movement to simplex domain *)&#xD;
      B[x_] := DiagonalMatrix[Map[Boole[# &amp;gt; 0] &amp;amp;, x]];&#xD;
      M[x_] := Total[Map[Boole[# &amp;gt; 0] &amp;amp;, x]];&#xD;
      &#xD;
      (* \[Sigma] is the correlation matrix, \[Mu] the deterministic \&#xD;
    transition matrix *)&#xD;
      \[Sigma] = &#xD;
       B[xts] . (IdentityMatrix[m] - &#xD;
          1/M[xts]*ConstantArray[1, {m, m}] . B[xts]);&#xD;
      &#xD;
      \[Mu][xoptin_] := \[Sigma] . (\[Kappa] (xoptin - xts));&#xD;
      &#xD;
      (* two deterministic matrices because dynamics change halfway *)&#xD;
      \[Mu]0 = \[Mu][xopt0];&#xD;
      \[Mu]1 = \[Mu][xopt1];&#xD;
      &#xD;
      (* provides function which random vector process X from SDE is fed \&#xD;
    into *)&#xD;
      F[x_] := 1 - E^-x;&#xD;
           R[xvec_] := &#xD;
       q*F[xvec[[1]]] + (1 - q)/(m - 1)*(Sum[F[xvec[[i]]], {i, 2, m}]);&#xD;
      &#xD;
      (** simulation of replicate trajectories **)&#xD;
      (* halfway dynamics change *)&#xD;
      (* &amp;#039;proc&amp;#039; takes random initial condition and produces a trajectory *)&#xD;
      (* trajectory is fed into &amp;#039;R&amp;#039; *)&#xD;
      proc[x0in_] :=&#xD;
       Block[{X0, X1},&#xD;
        X0 = &#xD;
         RandomFunction[&#xD;
          ItoProcess[{\[Mu]0, \[Sigma]}, {xs, x0in}, {t, 0.}], {0., T/&#xD;
           2, \[CapitalDelta]t}, Method -&amp;gt; &amp;#034;Milstein&amp;#034;];&#xD;
        X1 = &#xD;
         RandomFunction[&#xD;
          ItoProcess[{\[Mu]1, \[Sigma]}, {xs, X0[&amp;#034;LastValues&amp;#034;][[1]]}, {t, &#xD;
            0.}], {T/2, T, \[CapitalDelta]t}, Method -&amp;gt; &amp;#034;Milstein&amp;#034;];&#xD;
        TimeSeriesMap[R, TimeSeriesInsert[X0, X1]][&amp;#034;ValueList&amp;#034;]&#xD;
        &#xD;
        ];&#xD;
      &#xD;
      (* replicates are paralellized over random initial condition values \&#xD;
    *)RTs = Parallelize@Table[proc[x0[[i]]], {i, reps}];&#xD;
      &#xD;
      (* expected value over time and space is result *)&#xD;
      Mean[Flatten[RTs]]&#xD;
      &#xD;
      ]&#xD;
    &#xD;
    (* on the order of 3 minutes *)&#xD;
    AbsoluteTiming[\[ScriptCapitalE]R[1.00, .50, 3, 1.00, 1.00]]</description>
    <dc:creator>Cameron Turner</dc:creator>
    <dc:date>2024-10-30T17:42:19Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3292107">
    <title>Numerical instability in simulation</title>
    <link>https://community.wolfram.com/groups/-/m/t/3292107</link>
    <description>Hello. when I run the code below, i get the error NDSolveValue::reinitfail: Unable to reinitialize the system at t = 11.692137665979317` within specified tolerances. which i think is due to numerical instability in the calculations. any help on how to solve this issue would be greatly appreciated.&#xD;
&#xD;
    ClearAll[&amp;#034;Global`*&amp;#034;]&#xD;
    m[n_] := Piecewise[{{0.1, n == 40}}, 0.0001];&#xD;
    l[n_] := 0.02;&#xD;
    \[Zeta][t_] := 0.1 Cos[7 t]&#xD;
    r[n_, t_] := \[Zeta][t] UnitVector[3, 3] + &#xD;
       Sum[UnitVector[3, 1]*l[i] Sin[\[Theta][i, t]] - &#xD;
         UnitVector[3, 3]*l[i] Cos[\[Theta][i, t]], {i, n}];&#xD;
    rdot[n_, t_] := D[r[n, t], t];&#xD;
    tt[nn_] := 1/2 Sum[m[n]*Total[rdot[n, t]^2], {n, nn}];&#xD;
    vv[nn_] := g*Sum[m[n]*r[n, t][[3]], {n, nn}];&#xD;
    ll[nn_] := tt[nn] - vv[nn];&#xD;
    rr[nn_] := 1/2 cd*Sum[Total[rdot[n, t]^2], {n, nn}];&#xD;
    eqLag[k_, nn_] := &#xD;
      D[D[ll[nn], D[\[Theta][k, t], t]], t] - &#xD;
        D[ll[nn], \[Theta][k, t]] == -D[rr[nn], D[\[Theta][k, t], t]];&#xD;
    Block[{nn = 40,(*m=Function[1],l=Function[1],\[Zeta]=Function[1],*)&#xD;
      cd = 0.00005, g = 9.81}, &#xD;
     eqs = Table[eqLag[n, nn], {n, nn}](*//Simplify*);&#xD;
     initialData = &#xD;
      Flatten[Table[{\[Theta][k, 0] == 0.05, &#xD;
         Derivative[0, 1][\[Theta]][k, 0] == 0}, {k, nn}]];&#xD;
     sols = NDSolveValue[&#xD;
       Flatten@{eqs, initialData, &#xD;
         WhenEvent[ &#xD;
          0.02 (Sin[\[Theta][1, t]] + Sin[\[Theta][2, t]] + &#xD;
              Sin[\[Theta][3, t]] + Sin[\[Theta][4, t]] + &#xD;
              Sin[\[Theta][5, t]] + Sin[\[Theta][6, t]] + &#xD;
              Sin[\[Theta][7, t]] + Sin[\[Theta][8, t]] + &#xD;
              Sin[\[Theta][9, t]] + Sin[\[Theta][10, t]] + &#xD;
              Sin[\[Theta][11, t]] + Sin[\[Theta][12, t]] + &#xD;
              Sin[\[Theta][13, t]] + Sin[\[Theta][14, t]] + &#xD;
              Sin[\[Theta][15, t]] + Sin[\[Theta][16, t]] + &#xD;
              Sin[\[Theta][17, t]] + Sin[\[Theta][18, t]] + &#xD;
              Sin[\[Theta][19, t]] + Sin[\[Theta][20, t]] + &#xD;
              Sin[\[Theta][21, t]] + Sin[\[Theta][22, t]] + &#xD;
              Sin[\[Theta][23, t]] + Sin[\[Theta][24, t]] + &#xD;
              Sin[\[Theta][25, t]] + Sin[\[Theta][26, t]] + &#xD;
              Sin[\[Theta][27, t]] + Sin[\[Theta][28, t]] + &#xD;
              Sin[\[Theta][29, t]] + Sin[\[Theta][30, t]] + &#xD;
              Sin[\[Theta][31, t]] + Sin[\[Theta][32, t]] + &#xD;
              Sin[\[Theta][33, t]] + Sin[\[Theta][34, t]] + &#xD;
              Sin[\[Theta][35, t]] + Sin[\[Theta][36, t]] + &#xD;
              Sin[\[Theta][37, t]] + Sin[\[Theta][38, t]] + &#xD;
              Sin[\[Theta][39, t]] + Sin[\[Theta][40, t]])&#xD;
           &amp;lt;= 0, &#xD;
          Derivative[0, 1][\[Theta]][40, t] -&amp;gt; -0.8*&#xD;
            Derivative[0, 1][\[Theta]][40, t]]}, &#xD;
       Table[\[Theta][k, t], {k, nn}], {t, 0, 20}, &#xD;
       Method -&amp;gt; {&amp;#034;EquationSimplification&amp;#034; -&amp;gt; &amp;#034;Residual&amp;#034;}]]</description>
    <dc:creator>Ee Kin Chan</dc:creator>
    <dc:date>2024-10-07T02:06:00Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3282034">
    <title>Function layer error compiler: cannot interpret as a network</title>
    <link>https://community.wolfram.com/groups/-/m/t/3282034</link>
    <description>Hi,  &#xD;
I&amp;#039;m trying to define a layer in a net with a given function that includes a matrix, &amp;#034;m&amp;#034;, and its &amp;#034;Inverse [m]&amp;#034; but I get the error : &amp;#034;FunctionLayer::compiler: Cannot interpret Inverse[m] &amp;amp; as a network&amp;#034;.&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
Why am I getting this error?&#xD;
&#xD;
Thanks, &#xD;
Laura&#xD;
&#xD;
&#xD;
&#xD;
           &#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/c7c79296-2a39-4c57-b255-79f19e16f381</description>
    <dc:creator>Laura Pilozzi</dc:creator>
    <dc:date>2024-09-24T12:29:11Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3227384">
    <title>How to correct this code so that it can output the correct results?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3227384</link>
    <description>A function is to be constructed that, given an input of a positive integer value m, automatically enumerates all possible cases. Starting with an arithmetic sequence of length 4*m + 2, two terms are removed leaving 4m terms, which are then evenly divided into m groups, each consisting of 4 numbers. It is required that the 4 numbers in each group form their own arithmetic sequence. The function should generate all combinations of the two removed terms and the corresponding m groups of four numbers forming arithmetic sequences.&#xD;
&#xD;
To clarify the problem statement further, let&amp;#039;s break down the requirements:&#xD;
&#xD;
 1. An arithmetic sequence of length 4*m + 2 is created. &#xD;
 2. Two terms from this sequence are removed. &#xD;
 3. The remaining 4m terms are divided into m groups, each containing exactly 4 terms. &#xD;
 4. Each of these groups must also be an arithmetic sequence. &#xD;
 5. The function should output all possible combinations of the two removed terms and the resulting groups of four numbers that form arithmetic sequences.&#xD;
&#xD;
![enter image description here][1]&#xD;
&#xD;
Finally, represent each outcome using the grid diagram shown above.&#xD;
&#xD;
    f[m_] := Module[{S, graph}, S = Range[4 m + 2];&#xD;
      graph = &#xD;
       RelationGraph[DisjointQ, &#xD;
        Select[Subsets[S, {4}], Equal @@ Differences@# &amp;amp;]];&#xD;
      GroupBy[FindClique[graph, Length /@ FindClique[graph], All], &#xD;
       Complement[S, Join @@ #] &amp;amp;]]&#xD;
    &#xD;
    grid[m_] := &#xD;
     Grid[MapIndexed[{#2[[1]], Multicolumn[#, 2, Spacings -&amp;gt; 1]} &amp;amp;, &#xD;
       Map[Function[x, &#xD;
         TextGrid[&#xD;
          Range[4 m + 2] /. &#xD;
           a -&amp;gt; Alternatives @@ &#xD;
             Thread[a : Complement[Range[4 m + 2], Join @@ x] :&amp;gt; &#xD;
               Highlighted[a, FrameMargins -&amp;gt; 0]], Frame -&amp;gt; All, &#xD;
          FrameStyle -&amp;gt; Gray, &#xD;
          Background -&amp;gt; {None, None, &#xD;
            Join @@ MapIndexed[&#xD;
              Thread[Thread[{1, #}] -&amp;gt; &#xD;
                 Lighter[Hue[(Tr@#2 - 1)/Length@x], 0.85]] &amp;amp;, x]}]], &#xD;
        Values@f[m], {2}]], Alignment -&amp;gt; Left, Spacings -&amp;gt; {Automatic, 1}]&#xD;
&#xD;
&#xD;
The above code is not producing results correctly. How can it be corrected or modified to achieve the correct output?&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=JpD9cdC2.jpg&amp;amp;userId=1828799</description>
    <dc:creator>Lee Tao</dc:creator>
    <dc:date>2024-07-20T13:34:34Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3222475">
    <title>&amp;#034;SuiteSparseMatrix&amp;#034; appears broken?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3222475</link>
    <description>Running official notebook from https://resources.wolframcloud.com/FunctionRepository/resources/SuiteSparseMatrix/  fails on `ssm = ResourceFunction[&amp;#034;SuiteSparseMatrix&amp;#034;][&amp;#034;ash85&amp;#034;]` with the following error&#xD;
&#xD;
![enter image description here][1]&#xD;
It appears trying to retrieve `ash85` gives an array of shape `(1, 0)` at some point.&#xD;
&#xD;
Can anyone see a simple fix so that I can run this locally?&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=Screenshot2024-07-16at1.12.50%E2%80%AFPM.png&amp;amp;userId=1046145</description>
    <dc:creator>Yaroslav Bulatov</dc:creator>
    <dc:date>2024-07-16T20:13:38Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3222391">
    <title>Bifurcation graphs of two equations</title>
    <link>https://community.wolfram.com/groups/-/m/t/3222391</link>
    <description>I want to get the bifurcation graphs of the two equations below, please guide me to code and modify&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/72cdf396-9334-42ca-ad98-2bd56d024356</description>
    <dc:creator>Sajad Hoseini</dc:creator>
    <dc:date>2024-07-16T14:04:06Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3193984">
    <title>How can i make this code faster?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3193984</link>
    <description>How can i make this code faster&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/dde4985d-a668-498c-ad1a-eedd06612e73</description>
    <dc:creator>Raghad Al-amri</dc:creator>
    <dc:date>2024-06-14T23:28:25Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3176227">
    <title>Have you encountered trouble loading ExtensibleVector data structures that were saved in MX format?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3176227</link>
    <description>Hi. Using a fresh kernel &amp;amp; fresh computer reboot on Version 14, I keep seeing odd behavior when attempting to load ExtensibleVector data structures that were exported in the MX format.  Has anyone observed similar behavior? (screen shot below)&#xD;
![enter image description here][1]&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=ExtemsibleVectorScreenshot.jpg&amp;amp;userId=99116</description>
    <dc:creator>Todd Allen</dc:creator>
    <dc:date>2024-05-14T14:36:04Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3151464">
    <title>Reading and writing half precision float16</title>
    <link>https://community.wolfram.com/groups/-/m/t/3151464</link>
    <description>Does anyone have a better solution for reading and writing half-precision float16? As far as I can find Mathematica does not support this at the moment or am I missing something?&#xD;
&#xD;
Currently, I&amp;#039;m reading the data as &amp;#034;UnsignedInteger16&amp;#034; and then converting it to binary and calculating the floating point number, but this feels a bit cumbersome. &#xD;
&#xD;
    Int16ToFloat16 = Compile[{{int, _Integer, 0}},&#xD;
       Block[{bin, sign, imp, inf, exp, frac, signb, expb, fracb},&#xD;
&#xD;
        bin = IntegerDigits[int, 2, 16];&#xD;
        (*sign bit*)&#xD;
        signb = bin[[1]];&#xD;
        (*exponent bits*)&#xD;
        expb = bin[[2 ;; 6]];&#xD;
        (*fraction/significand bits *)&#xD;
        fracb = bin[[7 ;; 16]];&#xD;
        &#xD;
        (*check exponent*)&#xD;
        imp = Max[expb];&#xD;
        inf = Min[expb];&#xD;
        &#xD;
        (*Calculate sign exponent and signinficant*)&#xD;
        sign = (-1.)^signb;&#xD;
        exp = ({16, 8, 4, 2, 1} . expb) - 15.;&#xD;
        frac = ({512, 256, 128, 64, 32, 16, 8, 4, 2, 1} . fracb)/1024;&#xD;
        &#xD;
        (*calculate the number*)&#xD;
        If[imp === 0(*exp = 00000*), sign  (2.^-14.) frac,&#xD;
         If[inf === 1(*exp = 11111*), 0.(*make ininfity and NaN 0*), &#xD;
          sign (2.^exp) (1 + frac)]&#xD;
         ]&#xD;
        ], RuntimeAttributes -&amp;gt; {Listable}, RuntimeOptions -&amp;gt; &amp;#034;Speed&amp;#034;];&#xD;
&#xD;
the file can be found [here][1]&#xD;
&#xD;
    list = BinaryReadList[&amp;#034;positions.3.float16&amp;#034;, &amp;#034;UnsignedInteger16&amp;#034;]; // AbsoluteTiming&#xD;
    Dimensions@list&#xD;
    Int16ToFloat16@list[[1 ;; 10000]]; // RepeatedTiming&#xD;
    Int16ToFloat16[list]; // AbsoluteTiming&#xD;
&#xD;
The list contains around 40M numbers, reading the binary file takes less than a second but converting it to float more than 10.&#xD;
&#xD;
For storage, I&amp;#039;m just writing it as a float32 but this doubles the file size and the precision is not needed.&#xD;
&#xD;
  [1]: https://drive.google.com/file/d/1C0p8CiIvVLpTkyIfyCMvbdFeI9IqqVMT/view?usp=drive_link</description>
    <dc:creator>Martijn Froeling</dc:creator>
    <dc:date>2024-04-02T07:46:14Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3060546">
    <title>How to eliminate apparent memory leaks?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3060546</link>
    <description>Hello, I am trying to tabulate solutions of some nonlinear algebraic equations, using FindRoot[], where the functions defining nonlinear equations are obtained by a numerical inversion of the Laplace transform. For the transform inversion I use the GWR function available from http://library.wolfram.com/infocenter/MathSource/4738/. The tabulation consist in a loop of (theoretically) independent solution acts for a number of different values of a parameter (called p in my program). It turns out that after every solution act there is an increase of the occupied memory space, which quickly leads to the memory overflow, despite the fact that I use Clear[] to release the most evident intermediate objects. I am unable to figure out the reason&#xD;
for this problem, among other things it is not clear to me whether the problem arises in the GWR code, or it has anything to do with FindRoot. I would appreciate any help. I am attaching a simplifed test code with a typical output showing that the amount of the apparent memory leak is ca. 2 MB in every solution act.  &#xD;
Leslaw&#xD;
&#xD;
&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/242cf2c4-d832-4e67-bf42-7111d4f62c2f</description>
    <dc:creator>Leslaw Bieniasz</dc:creator>
    <dc:date>2023-11-04T22:59:28Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/3025705">
    <title>How to specify the install directory for Arduino with the Device property &amp;#034;ArduinoInstallLocation&amp;#034;?</title>
    <link>https://community.wolfram.com/groups/-/m/t/3025705</link>
    <description>Using the following code to connect to the Arduino board, the following window will be shown, which requires the installation of the Arduino software.&#xD;
&#xD;
    arduino = DeviceOpen[&amp;#034;Arduino&amp;#034;, &amp;#034;COM3&amp;#034;];&#xD;
&#xD;
![enter image description here][1]&#xD;
&#xD;
But because I have already installed the Arduino IDE software, I want to define its installation Path with  the Device property &amp;#034;ArduinoInstallLocation&amp;#034; so I use the following code:&#xD;
&#xD;
    arduino = DeviceOpen[&amp;#034;Arduino&amp;#034;, {&amp;#034;COM3&amp;#034;,&amp;#034;ArduinoInstallLocation&amp;#034; -&amp;gt; &amp;#034;C:\\Program Files\\Arduino IDE&amp;#034;}];&#xD;
&#xD;
But it doesn&amp;#039;t work for me.&#xD;
![enter image description here][2]&#xD;
Please Help! I need to specify the installation path of Arduino Software.&#xD;
&#xD;
&#xD;
  [1]: https://community.wolfram.com//c/portal/getImageAttachment?filename=1.png&amp;amp;userId=3025416&#xD;
  [2]: https://community.wolfram.com//c/portal/getImageAttachment?filename=2.png&amp;amp;userId=3025416</description>
    <dc:creator>Harry Hunt</dc:creator>
    <dc:date>2023-10-02T16:41:50Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/2940172">
    <title>Issue with ConcaveHullMesh function</title>
    <link>https://community.wolfram.com/groups/-/m/t/2940172</link>
    <description>I think I may have stumbled across an issue with Mathematica’s built-in ConcaveHullMesh function that doesn’t seem to arise with Jon McLoone&amp;#039;s NonConvexHullMesh resource function.  The issue is illustrated in the attached notebook.  My guess is that it occurs when the point values are modestly large (fairly typical of cartographical coordinate systems) and/or the number of points exceeds some threshold (noting that the function works when I take a small sample from the point dataset).&#xD;
&#xD;
From what I’m seeing, it looks like Jon&amp;#039;s resource function may be more robust than the built-in function.&#xD;
&#xD;
Any thoughts or solutions other than what I&amp;#039;ve already tried would be welcomed.&#xD;
&#xD;
Many thanks,&#xD;
&#xD;
Ian&#xD;
&amp;amp;[Wolfram Notebook][1]&#xD;
&#xD;
&#xD;
  [1]: https://www.wolframcloud.com/obj/0941c754-35d6-4c37-b6de-464f0b97877d</description>
    <dc:creator>Ian Williams</dc:creator>
    <dc:date>2023-06-20T16:50:15Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/2903058">
    <title>Processor group awareness</title>
    <link>https://community.wolfram.com/groups/-/m/t/2903058</link>
    <description>Mathematica 13.2 is still not processor group aware, i.e. able to utilize multiple NUMA nodes on a single machine.  More and more of today&amp;#039;s CPU&amp;#039;s are exceeding 32 physical cores (64 logical), not to mention dual CPU workstations that are quite common in high performance settings.  Windows does not allow more than 64 logical processors in a single processor group, which means Mathematica cannot access the remaining processing power -- also apparent when you check $ProcessorCount.  The current workaround is to disable hyperthreading/SMT which only raises the ceiling to 64 physical processors, but it is less than ideal and poor solution for dual CPU systems.  Are there plans or methods to make Mathematica processor group aware?  Not sure if there&amp;#039;s any real technical difficulty in allowing different subkernels to be launched on different processor groups.  I know that 3rd party tools such as Process Lasso can work but it would be better for Mathematica to have this ability natively.</description>
    <dc:creator>Sheldon Wu</dc:creator>
    <dc:date>2023-04-21T06:40:22Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/2759635">
    <title>Memory issues with ParallelMap</title>
    <link>https://community.wolfram.com/groups/-/m/t/2759635</link>
    <description>Hi,&#xD;
&#xD;
I have a looped function, which includes a Map operation, that I&amp;#039;ve optimized for serial computation whose computation time grows roughly proportional to (N^2+N)/2, where N is the length of the loop. The bottle neck happens at the Map operation, so I do&#xD;
&#xD;
    DistributeDefinitions[F, ..., from];&#xD;
    ParallelMap[F[...], from, Method-&amp;gt;&amp;#034;CoarsestGrained&amp;#034;];&#xD;
&#xD;
That works fine except every time I do a new ParallelMap the amount of memory the kernels are using grows until Mathematica crashes (and I have 64 GB of RAM...). &#xD;
&#xD;
Sadly, I find the documentation on parallel processing in Mathematica to be the poorest part of the documentation, mostly because the examples are far too simple (they are also all numeric - I&amp;#039;m doing symbolic computations) but also because there is no documentation on &amp;#034;Parallel`Developer`&amp;#034; nor the functions it contains, and no discussion on managing subkernel memory.&#xD;
&#xD;
At the beginning of my program I set HistoryLength = 0; and disable caching (which does not benefit what I&amp;#039;m doing - that&amp;#039;s a different discussion). Those two things only effect the main kernel. So would &amp;#034;ParallelEvaluate[$HistoryLength = 0];&amp;#034; set the history length for the subkernels to 0 (if not we need an option somewhere to do it, assuming the subkernels have a history)? &#xD;
&#xD;
I know I could prevent this problem by quitting the subkernels and relaunching them, but that has a huge overhead cost (~ N  AbsoluteTiming[LaunchKernels[]]) and would wipe-out any gains from parallel processing. I have tried &amp;#034;ClearKernels[]&amp;#034; but that doesn&amp;#039;t fix the memory problem. So, should I change my code to&#xD;
&#xD;
    ClearDistributedDefinitions[]; DistributeDefinitions[F, ..., from];&#xD;
    ParallelMap[F[...], from, Method-&amp;gt;&amp;#034;CoarsestGrained&amp;#034;];&#xD;
&#xD;
Is there anything else I should try?</description>
    <dc:creator>Troy Wahl</dc:creator>
    <dc:date>2023-01-04T19:04:55Z</dc:date>
  </item>
</rdf:RDF>

