# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=281

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 282

---

## [How to create Data.mat file for Convex.jl to solve optimal power flow using Matpower?](https://discourse.julialang.org/t/how-to-create-data-mat-file-for-convex-jl-to-solve-optimal-power-flow-using-matpower/80924)

<div class="topic-metadata">

**Author:** [@biswajit216](https://discourse.julialang.org/u/biswajit216)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 2:47am UTC](https://discourse.julialang.org/t/how-to-create-data-mat-file-for-convex-jl-to-solve-optimal-power-flow-using-matpower/80924 "2022-05-12T02:47:29Z")

</div>

Hi, I’m a newbie learning Julia for optimal power flow formulation using convex optimization. I came across an example from Convex.jl documentation in here https://jump.dev/Convex.jl/stable/examples/optimization\_with\_c…

---

## [Factorial function of a real number of complex number](https://discourse.julialang.org/t/factorial-function-of-a-real-number-of-complex-number/80911)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 9:53pm UTC](https://discourse.julialang.org/t/factorial-function-of-a-real-number-of-complex-number/80911 "2022-05-11T21:53:25Z")

</div>

I’m on Julia@1.7.2 and i put x=0.0 + 0.12008239133631671im factorial(x) i get an error , MethodError: no method matching factorial(::ComplexF64) the same thing if x is Float64 i get MethodError: no method matching fac…

---

## [SDAE for Stochastic SIR](https://discourse.julialang.org/t/sdae-for-stochastic-sir/80778)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 5\
**Last updated:** [May 11, 2022, 9:43pm UTC](https://discourse.julialang.org/t/sdae-for-stochastic-sir/80778 "2022-05-11T21:43:35Z")

</div>

I am fairly new at Julia and still learning the ropes. DifferentialEquations.jl package is my primary interest at preset. I want to model/plot a stochastic SIR model using SDAE. The reason my model is in terms of percent…

---

## [Problem with LogDetConeSquare](https://discourse.julialang.org/t/problem-with-logdetconesquare/80915)

<div class="topic-metadata">

**Author:** [@Zheming\_Wang](https://discourse.julialang.org/u/Zheming_Wang)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 9:23pm UTC](https://discourse.julialang.org/t/problem-with-logdetconesquare/80915 "2022-05-11T21:23:58Z")

</div>

I’m trying to use LogDetConeSquare with Mosek. I got the following error: julia\> solver = optimizer\_with\_attributes(Mosek.Optimizer, MOI.Silent() =\> false) MathOptInterface.OptimizerWithAttributes(Mosek.Optimizer, Pair{…

---

## [How to review your own enviroment in reinforce.jl](https://discourse.julialang.org/t/how-to-review-your-own-enviroment-in-reinforce-jl/80807)

<div class="topic-metadata">

**Author:** [@Hupdup](https://discourse.julialang.org/u/Hupdup)\
**Replies:** 4\
**Last updated:** [May 11, 2022, 3:32pm UTC](https://discourse.julialang.org/t/how-to-review-your-own-enviroment-in-reinforce-jl/80807 "2022-05-11T15:32:28Z")

</div>

Hello all, I have written a custom enviroment in reinforce.jl and now I want to check if it is correct (i.e. if the actions and the step function work as thought). For this I wanted to call the functions one by one in …

---

## [Deleting upper and lower bounds JuMP@0.22.3 Clp@0.9.1](https://discourse.julialang.org/t/deleting-upper-and-lower-bounds-jump-0-22-3-clp-0-9-1/80842)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 11:38am UTC](https://discourse.julialang.org/t/deleting-upper-and-lower-bounds-jump-0-22-3-clp-0-9-1/80842 "2022-05-11T11:38:27Z")

</div>

It’s been quite some time since last time i used JuMP now i came back to it and changed some of old syntax of this code: using JuMP using Clp function scan\_maker(A) m = Model(Clp.Optimizer) JuMP.set\_optimizer\_a…

---

## [Use extension for mathjax in Franklin app](https://discourse.julialang.org/t/use-extension-for-mathjax-in-franklin-app/80806)

<div class="topic-metadata">

**Author:** [@paradoxical-rhapsody](https://discourse.julialang.org/u/paradoxical-rhapsody)\
**Replies:** 4\
**Last updated:** [May 11, 2022, 2:40pm UTC](https://discourse.julialang.org/t/use-extension-for-mathjax-in-franklin-app/80806 "2022-05-11T14:40:13Z")

</div>

In my pratice, I would like to use actuarial symbols in my Franklin app, but the KaTeX does not support these symbols. Following the instruction about using mathjax, the math formula are rendered perfectly. Then maybe …

---

## [Issue in ModellingToolkit using Flux.destructure](https://discourse.julialang.org/t/issue-in-modellingtoolkit-using-flux-destructure/80876)

<div class="topic-metadata">

**Author:** [@ap2013](https://discourse.julialang.org/u/ap2013)\
**Replies:** 5\
**Last updated:** [May 11, 2022, 2:21pm UTC](https://discourse.julialang.org/t/issue-in-modellingtoolkit-using-flux-destructure/80876 "2022-05-11T14:21:35Z")

</div>

After updating the packages on my project, I am getting an unexpected error. The project builds an ODE system composed of multiple systems. The ODE system that is raising the error is function MLP\_controller(nn; n=:MLP…

---

## [Weave hangs when trying to generate a plot](https://discourse.julialang.org/t/weave-hangs-when-trying-to-generate-a-plot/80617)

<div class="topic-metadata">

**Author:** [@pauldg](https://discourse.julialang.org/u/pauldg)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 11:40am UTC](https://discourse.julialang.org/t/weave-hangs-when-trying-to-generate-a-plot/80617 "2022-05-11T11:40:56Z")

</div>

I have a histogram inside a jmd file that I want to plot: \`\`\`julia; echo = false using Plots gr() h = histogram(WEAVE\_ARGS.dict\["p\_reads"\], label="", xlabel="Number of reads", …

---

## [Plot frequencies instead of counts in AoG](https://discourse.julialang.org/t/plot-frequencies-instead-of-counts-in-aog/80873)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 10:02am UTC](https://discourse.julialang.org/t/plot-frequencies-instead-of-counts-in-aog/80873 "2022-05-11T10:02:07Z")

</div>

I’m doing something similar to this example: http://juliaplots.org/AlgebraOfGraphics.jl/stable/generated/analyses/#Frequency But I would like to plot frequencies instead of counts. How can I do that?

---

## [Calling Mathematica into Julia to symbolically solve a system of non-linear equations](https://discourse.julialang.org/t/calling-mathematica-into-julia-to-symbolically-solve-a-system-of-non-linear-equations/80518)

<div class="topic-metadata">

**Author:** [@MAC](https://discourse.julialang.org/u/MAC)\
**Replies:** 18\
**Last updated:** [May 11, 2022, 1:14am UTC](https://discourse.julialang.org/t/calling-mathematica-into-julia-to-symbolically-solve-a-system-of-non-linear-equations/80518 "2022-05-11T01:14:29Z")

</div>

I’m currently using Mathematica to symbolically solve a system of non-linear ODEs (10 equations with 8 variables) as I believe this is not yet possible using Symbolics.jl. Is anyone able to comment on whether it would b…

---

## [NVIDIA Driver Release 510 and Julia 1.7.2](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451)

<div class="topic-metadata">

**Author:** [@afas](https://discourse.julialang.org/u/afas)\
**Replies:** 8\
**Last updated:** [May 10, 2022, 8:52pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451 "2022-05-10T20:52:55Z")

</div>

Hi everyone, I am experiencing unwanted behavior from CUDA and I was wondering if anyone has any idea about what is happening here. Brief intro: I just installed Julia 1.7.2 on a new Windows machine. CUDA was working ju…

---

## [Zygote / ReverseDiff not matching input types](https://discourse.julialang.org/t/zygote-reversediff-not-matching-input-types/80838)

<div class="topic-metadata">

**Author:** [@evolbio](https://discourse.julialang.org/u/evolbio)\
**Replies:** 0\
**Last updated:** [May 10, 2022, 7:27pm UTC](https://discourse.julialang.org/t/zygote-reversediff-not-matching-input-types/80838 "2022-05-10T19:27:06Z")

</div>

In my code, the line (y ./ k).^h throws a Zygote / ReverseDiff error but works without problem with ForwardDiff. Here, k and h are views of a parameter vector and y is a subset of the variable vector that depends on the …

---

## [Parametron conflicts with Gurobi](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812)

<div class="topic-metadata">

**Author:** [@Vscinz](https://discourse.julialang.org/u/Vscinz)\
**Replies:** 3\
**Last updated:** [May 10, 2022, 7:02pm UTC](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812 "2022-05-10T19:02:25Z")

</div>

Hi, I tried to use Parametron.jl to solve a “parameterized family” of optimization problems (please see below) However, the inclusion of the package Parametron on Julia (v. 1.7.2) creates a problem with the package …

---

## [Zygote returning wrong gradient on GPU](https://discourse.julialang.org/t/zygote-returning-wrong-gradient-on-gpu/80750)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 4\
**Last updated:** [May 10, 2022, 3:11pm UTC](https://discourse.julialang.org/t/zygote-returning-wrong-gradient-on-gpu/80750 "2022-05-10T15:11:35Z")

</div>

Hi! As an exercise, I want to optimize the potential energy of a system of springs, which are coupled if they are closer than some threshold. On cpu, the gradient is correct but on gpu it is nothing. Am I doing something…

---

## [SCIP Concurrency (Multi-threading)](https://discourse.julialang.org/t/scip-concurrency-multi-threading/80814)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 1\
**Last updated:** [May 10, 2022, 2:44pm UTC](https://discourse.julialang.org/t/scip-concurrency-multi-threading/80814 "2022-05-10T14:44:12Z")

</div>

As of version 4 SCIP supports concurrency. It mentions here that the option "parallel/maxnthreads" must be set as appropriate, it also mentions that SCIP must be compiled differently to leverage this functionality and th…

---

## [Zooming and date axes in Makie](https://discourse.julialang.org/t/zooming-and-date-axes-in-makie/80790)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 14\
**Last updated:** [May 10, 2022, 1:47pm UTC](https://discourse.julialang.org/t/zooming-and-date-axes-in-makie/80790 "2022-05-10T13:47:39Z")

</div>

Hi there! I recently got acquainted with Makie and I absolutely love it! Here are 2 small questions related to zooming (in GLMakie): Is it possible to update the ticks dynamically when zooming? For instance I would l…

---

## [Numbers sampled from exponential distribution seems to be incorrect](https://discourse.julialang.org/t/numbers-sampled-from-exponential-distribution-seems-to-be-incorrect/80810)

<div class="topic-metadata">

**Author:** [@efJerryYang](https://discourse.julialang.org/u/efJerryYang)\
**Replies:** 4\
**Last updated:** [May 10, 2022, 1:40pm UTC](https://discourse.julialang.org/t/numbers-sampled-from-exponential-distribution-seems-to-be-incorrect/80810 "2022-05-10T13:40:22Z")

</div>

I am running a simulation task which is supposed to sample data from an exponential distribution, but the results are always larger than correct ones. I converted my julia code to matlab and it produced correct results (…

---

## [Question about Bayesian Survival Analysis with Cox (proportional hazards) regression method in Julia with Turing](https://discourse.julialang.org/t/question-about-bayesian-survival-analysis-with-cox-proportional-hazards-regression-method-in-julia-with-turing/80672)

<div class="topic-metadata">

**Author:** [@RyanKuo](https://discourse.julialang.org/u/RyanKuo)\
**Replies:** 6\
**Last updated:** [May 10, 2022, 1:17pm UTC](https://discourse.julialang.org/t/question-about-bayesian-survival-analysis-with-cox-proportional-hazards-regression-method-in-julia-with-turing/80672 "2022-05-10T13:17:11Z")

</div>

Dear All, I am trying to implement Bayesian Survival Analysis with Cox (proportional hazards) regression method in Julia based on the PyMC3 code written by Austin Rochford https://austinrochford.com/posts/2015-10-05-ba…

---

## [Parameter Estimation using Least Squares with missing data](https://discourse.julialang.org/t/parameter-estimation-using-least-squares-with-missing-data/80797)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 2\
**Last updated:** [May 10, 2022, 12:21pm UTC](https://discourse.julialang.org/t/parameter-estimation-using-least-squares-with-missing-data/80797 "2022-05-10T12:21:36Z")

</div>

I am trying to estimate 4 parameters for an ode that outputs as solution 4 values at any given time point. I have actual data for 2 of those values. I would like to preform parameter estimation using the available incomp…

---

## [SDE estimation based on a set of features](https://discourse.julialang.org/t/sde-estimation-based-on-a-set-of-features/80798)

<div class="topic-metadata">

**Author:** [@mobar](https://discourse.julialang.org/u/mobar)\
**Replies:** 1\
**Last updated:** [May 10, 2022, 12:20pm UTC](https://discourse.julialang.org/t/sde-estimation-based-on-a-set-of-features/80798 "2022-05-10T12:20:47Z")

</div>

I would like to get started with non-linear time timeseries learning and extrapolation in Julia by learning the drift parameters in an SDE based on a pre-defined set of latent features (for this particular application it…

---

## [\`mul\_float: types of a and b must match\` error in ModelingToolkit](https://discourse.julialang.org/t/mul-float-types-of-a-and-b-must-match-error-in-modelingtoolkit/77485)

<div class="topic-metadata">

**Author:** [@anandpathak31](https://discourse.julialang.org/u/anandpathak31)\
**Replies:** 7\
**Last updated:** [May 10, 2022, 12:16pm UTC](https://discourse.julialang.org/t/mul-float-types-of-a-and-b-must-match-error-in-modelingtoolkit/77485 "2022-05-10T12:16:20Z")

</div>

I am getting the mul\_float: types of a and b must match error in my code that uses ModelingToolkit in which I am solving an ODAEProblem costructed from ODESystem in a loop. In each iteration I am modifying the ODESystem …

---

## [How to make Stat.x\_jitter work with Geom.subplot\_grid](https://discourse.julialang.org/t/how-to-make-stat-x-jitter-work-with-geom-subplot-grid/80152)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 1\
**Last updated:** [May 10, 2022, 11:01am UTC](https://discourse.julialang.org/t/how-to-make-stat-x-jitter-work-with-geom-subplot-grid/80152 "2022-05-10T11:01:32Z")

</div>

Hello Everyone, The plot, using Gadfly.jl, that I am trying to make requires me to jitter the points in a grid plot. But I cannot figure out how? The code example below replicates my situation. Please suggest what may I…

---

## [Couple JuMP with the simulator](https://discourse.julialang.org/t/couple-jump-with-the-simulator/80792)

<div class="topic-metadata">

**Author:** [@Jack\_Tang](https://discourse.julialang.org/u/Jack_Tang)\
**Replies:** 4\
**Last updated:** [May 10, 2022, 8:42am UTC](https://discourse.julialang.org/t/couple-jump-with-the-simulator/80792 "2022-05-10T08:42:24Z")

</div>

Hi I am working on a project about multi-reservoir control optimization problem and the objective function is calculated by Telemac simulator. Do you have some examples or best practices for such integration? I have r…

---

## [JuMP Gurobi.jl CPLEX.jl Solution Pool](https://discourse.julialang.org/t/jump-gurobi-jl-cplex-jl-solution-pool/71604)

<div class="topic-metadata">

**Author:** [@davide-f](https://discourse.julialang.org/u/davide-f)\
**Replies:** 6\
**Last updated:** [May 9, 2022, 10:20pm UTC](https://discourse.julialang.org/t/jump-gurobi-jl-cplex-jl-solution-pool/71604 "2022-05-09T22:20:02Z")

</div>

Hi community, I was interested in setting and obtaining a solution pool for a MILP problem using a solver like CPLEX or Gurobi that support that capability. Do you know how I can proceed or suggestions? Thank you

---

## [JSON3.jl struct read](https://discourse.julialang.org/t/json3-jl-struct-read/80751)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 7:55pm UTC](https://discourse.julialang.org/t/json3-jl-struct-read/80751 "2022-05-09T19:55:58Z")

</div>

using JSON3 struct Foo foo::Int bar::String end JSON3.StructTypes.StructType(::Type{Foo}) = JSON3.StructTypes.Struct() obj = Foo(1, "bar") If if just have the pure struct it works fine: julia\> json = JSON3.w…

---

## [System of NonLinear Equations with Inequality and Equality Constraints](https://discourse.julialang.org/t/system-of-nonlinear-equations-with-inequality-and-equality-constraints/80690)

<div class="topic-metadata">

**Author:** [@tugberk21](https://discourse.julialang.org/u/tugberk21)\
**Replies:** 4\
**Last updated:** [May 9, 2022, 3:47pm UTC](https://discourse.julialang.org/t/system-of-nonlinear-equations-with-inequality-and-equality-constraints/80690 "2022-05-09T15:47:08Z")

</div>

Hi All! I’m trying to switch Julia from MATLAB. I’m using MATLAB more specifically fmincon to solve system of nonlinear equations with inequality and equality constraints. Fmincon is great function for me which accepts …

---

## [Poor CPU Utilisation on HPC Cluster](https://discourse.julialang.org/t/poor-cpu-utilisation-on-hpc-cluster/80756)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 4\
**Last updated:** [May 9, 2022, 3:20pm UTC](https://discourse.julialang.org/t/poor-cpu-utilisation-on-hpc-cluster/80756 "2022-05-09T15:20:48Z")

</div>

Running into an odd error and not sure where to begin, wondering if you folks had any advice. I’m using Distributed.jl to parallelise iterations of a CPU-intensive function, with my code looking like this: # code in my…

---

## [Latex Strings in Makie Axis Ticks](https://discourse.julialang.org/t/latex-strings-in-makie-axis-ticks/80729)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 3:20pm UTC](https://discourse.julialang.org/t/latex-strings-in-makie-axis-ticks/80729 "2022-05-09T15:20:55Z")

</div>

Hi, I have been having some issues with generating my desired tick labels in Makie. I would like to use LaTeX style formatting (for example \\rho\_{B}). Unfortunately, Makie does not seem to accept LatexStrings for the ax…

---

## [Nonlinear expressions may contain only scalar](https://discourse.julialang.org/t/nonlinear-expressions-may-contain-only-scalar/80721)

<div class="topic-metadata">

**Author:** [@Tri](https://discourse.julialang.org/u/Tri)\
**Replies:** 5\
**Last updated:** [May 9, 2022, 10:16am UTC](https://discourse.julialang.org/t/nonlinear-expressions-may-contain-only-scalar/80721 "2022-05-09T10:16:08Z")

</div>

Totally new to Julia. I tried to look up a solution to this error message but couldn’t find a helpful answer “Nonlinear expressions may contain only scalar expressions” What exactly should I do to circumvent this error…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=280)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=282)
