# \#optimization

**URL:** https://discourse.julialang.org/tag/optimization/187.md?match_all_tags=true&page=5&tags%5B%5D=optimization

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

**Page:** 6

---

## [\[ANN, NEW\] OptimalTransportNetworks.jl - Optimal transport networks in spatial equilibrium](https://discourse.julialang.org/t/ann-new-optimaltransportnetworks-jl-optimal-transport-networks-in-spatial-equilibrium/119649)

<div class="topic-metadata">

**Author:** [@SebKrantz](https://discourse.julialang.org/u/SebKrantz)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 11:37pm UTC](https://discourse.julialang.org/t/ann-new-optimaltransportnetworks-jl-optimal-transport-networks-in-spatial-equilibrium/119649 "2024-09-20T23:37:24Z")

</div>

I’m happy to announce the release of OptimalTransportNetworks.jl, a modern Julia translation of the MATLAB OptimalTransportNetworkToolbox implementing the quantitative spatial model and algorithms described in Fajgelbau…

---

## [Parameter estimation in biological network](https://discourse.julialang.org/t/parameter-estimation-in-biological-network/119630)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 7\
**Last updated:** [September 20, 2024, 6:55am UTC](https://discourse.julialang.org/t/parameter-estimation-in-biological-network/119630 "2024-09-20T06:55:37Z")

</div>

I am working on a large signaling pathway and trying to get a rough estimation of the baseline parameters. I have been trying to do the fitting with the Particle Swarm Optimization from Metaheuristics.jl but it does not …

---

## [Recover weights of logistic regression using MLJ.jl](https://discourse.julialang.org/t/recover-weights-of-logistic-regression-using-mlj-jl/119331)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 0\
**Last updated:** [September 12, 2024, 2:55pm UTC](https://discourse.julialang.org/t/recover-weights-of-logistic-regression-using-mlj-jl/119331 "2024-09-12T14:55:07Z")

</div>

Hi all, I’m trying to see if I can recover the weights of the logistic regression from data I’m generating synthetically, but for some reason there is large error in the optimized weights when using MLJ.jl. To create t…

---

## [Minecraft nuclearcraft optimization problem](https://discourse.julialang.org/t/minecraft-nuclearcraft-optimization-problem/119058)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 6\
**Last updated:** [September 8, 2024, 7:37am UTC](https://discourse.julialang.org/t/minecraft-nuclearcraft-optimization-problem/119058 "2024-09-08T07:37:51Z")

</div>

I have a toy optimization problem for you. Out of all the Minecraft mods, nuclearcraft stood out to me, particularly, the fission reactors. Unlike other items in the mod itself or other mods, fission reactor in nuclearc…

---

## [Fantasy Premier League (FPL) Optimization](https://discourse.julialang.org/t/fantasy-premier-league-fpl-optimization/119080)

<div class="topic-metadata">

**Author:** [@tross](https://discourse.julialang.org/u/tross)\
**Replies:** 0\
**Last updated:** [September 5, 2024, 4:38pm UTC](https://discourse.julialang.org/t/fantasy-premier-league-fpl-optimization/119080 "2024-09-05T16:38:56Z")

</div>

Hello! I’m excited to share a project I’ve been working on that combines two of my passions: Julia programming and Fantasy Premier League (FPL). I’ve developed JFPL-Optimization, a Julia implementation of an existing Py…

---

## [CUDA and estimation of parameters of a Differential Equation](https://discourse.julialang.org/t/cuda-and-estimation-of-parameters-of-a-differential-equation/118941)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 1\
**Last updated:** [September 3, 2024, 9:29am UTC](https://discourse.julialang.org/t/cuda-and-estimation-of-parameters-of-a-differential-equation/118941 "2024-09-03T09:29:58Z")

</div>

I am trying to estimate three parameters of a ODE system with 368 equations couple. Since it is a big system I have decided to use CUDA as recommeded by other colleagues to speed up the process. Because the ODE is writte…

---

## [\[ANN\] GALAHAD.jl: Bridging Julia with advanced optimization techniques](https://discourse.julialang.org/t/ann-galahad-jl-bridging-julia-with-advanced-optimization-techniques/118647)

<div class="topic-metadata">

**Author:** [@amontoison](https://discourse.julialang.org/u/amontoison)\
**Replies:** 5\
**Last updated:** [August 31, 2024, 1:55pm UTC](https://discourse.julialang.org/t/ann-galahad-jl-bridging-julia-with-advanced-optimization-techniques/118647 "2024-08-31T13:55:46Z")

</div>

Dear Julia Community, We are pleased to announce the release of GALAHAD.jl, the Julia interface to the renowned GALAHAD library, now at version 5.0. GALAHAD.jl brings the powerful optimization capabilities of GALAHAD …

---

## [Matrix inverse and multivariate normal distribution](https://discourse.julialang.org/t/matrix-inverse-and-multivariate-normal-distribution/118724)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 6:07pm UTC](https://discourse.julialang.org/t/matrix-inverse-and-multivariate-normal-distribution/118724 "2024-08-28T18:07:09Z")

</div>

Hello, I am fitting a spatio-temporal-and-informed-with-covariates bayesian model in Julia. I have a regression vector with prior distribution \\vec{\\beta}\_t \\sim \\mathcal{N}\_p(\\vec{b\_0},s^2I) (where p is the number of c…

---

## [Excessively long TTFX with Optimization and OptimizationOptimJL](https://discourse.julialang.org/t/excessively-long-ttfx-with-optimization-and-optimizationoptimjl/118457)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 22\
**Last updated:** [August 24, 2024, 1:27pm UTC](https://discourse.julialang.org/t/excessively-long-ttfx-with-optimization-and-optimizationoptimjl/118457 "2024-08-24T13:27:28Z")

</div>

Suppose we would like to solve the following problem : min ||Ax - b||\_2^2, s.t. x.\>0 using OptimizationOptimJl. One way to write it would be as follows: using Optimization, OptimizationOptimJL function obj\_f(x,p)…

---

## [MAP optimization in Turing with LBFGS doesn't move at all](https://discourse.julialang.org/t/map-optimization-in-turing-with-lbfgs-doesnt-move-at-all/118431)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 22\
**Last updated:** [August 23, 2024, 3:31pm UTC](https://discourse.julialang.org/t/map-optimization-in-turing-with-lbfgs-doesnt-move-at-all/118431 "2024-08-23T15:31:48Z")

</div>

I’m using maximum\_a\_posteriori to try to find a MAP fit for a complex model that I can’t show you at the moment. If I run it with SAMIN() simulated annealing, or BBO\_de\_... algorithms, it does move around and finds part…

---

## [\[pre-ANN\] RingStarProblems.jl ⸺ A RSPSolver](https://discourse.julialang.org/t/pre-ann-ringstarproblems-jl-a-rspsolver/116992)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 5\
**Last updated:** [August 1, 2024, 11:24pm UTC](https://discourse.julialang.org/t/pre-ann-ringstarproblems-jl-a-rspsolver/116992 "2024-08-01T23:24:20Z")

</div>

A Ring Star Problem variants Solver I am super happy to share the package RingStarProblems.jl. This package aims to provide a solver to the Ring Star Problem and its variants. You can checkout the Labbé et al. (2004) …

---

## [To confirm: The sign of the dual variable on a constraint of \`JuMP\` model](https://discourse.julialang.org/t/to-confirm-the-sign-of-the-dual-variable-on-a-constraint-of-jump-model/114292)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 7\
**Last updated:** [August 22, 2024, 5:50pm UTC](https://discourse.julialang.org/t/to-confirm-the-sign-of-the-dual-variable-on-a-constraint-of-jump-model/114292 "2024-08-22T17:50:30Z")

</div>

To make it more clear, let’s consider an optimization problem of the following standard form: \\begin{equation} \\begin{array}{cl} {\\min} & {f\_0(x)}\\\\ {\\mathrm{s.t.}} & {f\_i(x)\\leqslant 0,\\quad i=1,\\c…

---

## [How to link a JuMP model and a general algorithm together?](https://discourse.julialang.org/t/how-to-link-a-jump-model-and-a-general-algorithm-together/118356)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [August 20, 2024, 2:59am UTC](https://discourse.julialang.org/t/how-to-link-a-jump-model-and-a-general-algorithm-together/118356 "2024-08-20T02:59:51Z")

</div>

Suppose there is a general algorithm for some kind of optimization problem in a standard form, and then there is an instance of this kind of problem which is however not written in the standard form. Both of the algorit…

---

## [Help with for-loops optimization / Translation from Matlab](https://discourse.julialang.org/t/help-with-for-loops-optimization-translation-from-matlab/118204)

<div class="topic-metadata">

**Author:** [@Benjamin7](https://discourse.julialang.org/u/Benjamin7)\
**Replies:** 7\
**Last updated:** [August 15, 2024, 7:42am UTC](https://discourse.julialang.org/t/help-with-for-loops-optimization-translation-from-matlab/118204 "2024-08-15T07:42:59Z")

</div>

Hi, I have been asked to translate a matlab code to Julia to gain speed, what I have done is to put each for loop with the @inbound, put each array and all important code in a function, I have defined the type of almost …

---

## [Fastest way to perform A \* B \* A’](https://discourse.julialang.org/t/fastest-way-to-perform-a-b-a/117386)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 9\
**Last updated:** [August 13, 2024, 12:30pm UTC](https://discourse.julialang.org/t/fastest-way-to-perform-a-b-a/117386 "2024-08-13T12:30:08Z")

</div>

Given two dense square matrices with ComplexF64 elements of size approximately 100000X100000, A and B, what is the fastest way to perform R=ABA’, where A’=conj(tr(A)) is the Hermitian conjugate of A?. If it helps: (1) …

---

## [Fastest way to perform A\[a,:\] \* B \* A’\[:,b\] where a and b are vectors of indices](https://discourse.julialang.org/t/fastest-way-to-perform-a-a-b-a-b-where-a-and-b-are-vectors-of-indices/117958)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 5\
**Last updated:** [August 8, 2024, 8:37pm UTC](https://discourse.julialang.org/t/fastest-way-to-perform-a-a-b-a-b-where-a-and-b-are-vectors-of-indices/117958 "2024-08-08T20:37:31Z")

</div>

This question is a follow-up to To recap, given two dense square matrices with ComplexF64 elements of size approximately 100000X100000, A and B, what is the fastest way to perform R=ABA’, where A’=conj(tr(A)) is the He…

---

## [The graphs ecosystem](https://discourse.julialang.org/t/the-graphs-ecosystem/99463)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 35\
**Last updated:** [August 6, 2024, 10:01am UTC](https://discourse.julialang.org/t/the-graphs-ecosystem/99463 "2024-08-06T10:01:22Z")

</div>

Hey everyone, The very fruitful discussion on fixing package fragmentation started from a remark I made on Slack about graphs, which is why I’m asking the community for ideas and support. In my opinion, the most import…

---

## [Fitting system of ODEs to already normalized data](https://discourse.julialang.org/t/fitting-system-of-odes-to-already-normalized-data/117400)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 1\
**Last updated:** [July 26, 2024, 1:34pm UTC](https://discourse.julialang.org/t/fitting-system-of-odes-to-already-normalized-data/117400 "2024-07-26T13:34:27Z")

</div>

I have a system of ODEs as a model and want to calibrate it. I have data for multiple outputs of the model but they are already normalized. Since I am unfamiliar with the related packages in Julia, what would you recomme…

---

## [Primal-Dual Hybrid Gradient for L1 regularization](https://discourse.julialang.org/t/primal-dual-hybrid-gradient-for-l1-regularization/117201)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 23\
**Last updated:** [July 21, 2024, 5:34pm UTC](https://discourse.julialang.org/t/primal-dual-hybrid-gradient-for-l1-regularization/117201 "2024-07-21T17:34:33Z")

</div>

Greetings everyone, I was looking for a way to solve the following problem using julia: min\_{f\\geq0} \\; ||Kf-s||\_2^2 +\\alpha ||f||\_1 There’s this paper (section 2.2 specifically), where the authors use a Primal-D…

---

## [How to estimate many successive parameters of system of ODEs?](https://discourse.julialang.org/t/how-to-estimate-many-successive-parameters-of-system-of-odes/117144)

<div class="topic-metadata">

**Author:** [@LSchueler](https://discourse.julialang.org/u/LSchueler)\
**Replies:** 3\
**Last updated:** [July 18, 2024, 7:40am UTC](https://discourse.julialang.org/t/how-to-estimate-many-successive-parameters-of-system-of-odes/117144 "2024-07-18T07:40:23Z")

</div>

Hi, I have a system of ODEs for which I’d like to estimate its parameters by fitting it to observational data. The only “interesting” part of this problem is that the parameters vary on a daily basis. A naive approach …

---

## [Lazy constraints are not supported by SCIP.jl while JuMP doesn't mention it](https://discourse.julialang.org/t/lazy-constraints-are-not-supported-by-scip-jl-while-jump-doesnt-mention-it/117110)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 10:11pm UTC](https://discourse.julialang.org/t/lazy-constraints-are-not-supported-by-scip-jl-while-jump-doesnt-mention-it/117110 "2024-07-16T22:11:04Z")

</div>

Dear Julia Discourse community, When running my Unit tests to make my package solver-agnostic: import RingStarProblems as RSP using Test @testset "RingStarProblems.jl" begin # Write your tests here. include("a…

---

## [Callbacks with xpress in JuMP](https://discourse.julialang.org/t/callbacks-with-xpress-in-jump/116889)

<div class="topic-metadata">

**Author:** [@Popeye](https://discourse.julialang.org/u/Popeye)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 5:11am UTC](https://discourse.julialang.org/t/callbacks-with-xpress-in-jump/116889 "2024-07-15T05:11:30Z")

</div>

Hi everyone, I’m currently working on a MILP problem using the Xpress solver in JuMP. Some instances of this problem are taking considerably longer to solve to optimality, and I would like to implement solver-specific c…

---

## [Problem with Multiple shooting](https://discourse.julialang.org/t/problem-with-multiple-shooting/116829)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 1\
**Last updated:** [July 9, 2024, 3:46pm UTC](https://discourse.julialang.org/t/problem-with-multiple-shooting/116829 "2024-07-09T15:46:34Z")

</div>

I am trying to estimate the parameters of a ODE model using a frequentist approach. While the simple L2Loss approach it works after when I run a more complicated one it does not. It gives me the following error: ERROR:…

---

## [Julia and Optimization Days 2024 (October 2024)](https://discourse.julialang.org/t/julia-and-optimization-days-2024-october-2024/116814)

<div class="topic-metadata">

**Author:** [@quachpas](https://discourse.julialang.org/u/quachpas)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 9:44am UTC](https://discourse.julialang.org/t/julia-and-optimization-days-2024-october-2024/116814 "2024-07-09T09:44:56Z")

</div>

Hello everyone, I’m relaying this event happening in Toulouse, France (October 2024). Following the success of the JuliaDay organized in Nantes in 2019 and Paris in 2023, we are organizing a third edition of the Julia…

---

## [Hacking LineSearches.jl to parallelize step estimation](https://discourse.julialang.org/t/hacking-linesearches-jl-to-parallelize-step-estimation/116787)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 10\
**Last updated:** [July 9, 2024, 9:38am UTC](https://discourse.julialang.org/t/hacking-linesearches-jl-to-parallelize-step-estimation/116787 "2024-07-09T09:38:35Z")

</div>

I want to hack Linesearches.jl to be able to stick a @threads macro on the linesearch part. I have an objective function for an optimization problem which has many parameters and is also very expensive to compute. This …

---

## [Nonlinear optimization with ODE solution in nonlinear constraint](https://discourse.julialang.org/t/nonlinear-optimization-with-ode-solution-in-nonlinear-constraint/116730)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 6\
**Last updated:** [July 8, 2024, 5:51pm UTC](https://discourse.julialang.org/t/nonlinear-optimization-with-ode-solution-in-nonlinear-constraint/116730 "2024-07-08T17:51:54Z")

</div>

Hello, I am trying to model and solve a fairly complex constrained nonlinear optimization problem. The main issue is that to compute some equality constraints I need to solve an ODE numerically. So far, I have been abl…

---

## [Symmetry reduction in Sumsofsquares](https://discourse.julialang.org/t/symmetry-reduction-in-sumsofsquares/115727)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 18\
**Last updated:** [June 30, 2024, 11:42pm UTC](https://discourse.julialang.org/t/symmetry-reduction-in-sumsofsquares/115727 "2024-06-30T23:42:55Z")

</div>

I have a simple minimization with symmetry, but Julia gives an error while using symmetry reduction. I want to find the minimum of x\_1^4+x\_2^4+x\_3^4-4x\_1x\_2x\_3+x\_1+x\_2+x\_3. Here is my script: using SumOfSquares using …

---

## [How to create independent normal distribution variables in JuMP](https://discourse.julialang.org/t/how-to-create-independent-normal-distribution-variables-in-jump/116325)

<div class="topic-metadata">

**Author:** [@SSGD](https://discourse.julialang.org/u/SSGD)\
**Replies:** 4\
**Last updated:** [June 29, 2024, 5:01pm UTC](https://discourse.julialang.org/t/how-to-create-independent-normal-distribution-variables-in-jump/116325 "2024-06-29T17:01:57Z")

</div>

Hello :smiley: I followed the previous work to define variables (normal distribution) in JuMP v.1.22.2 and want to use like this: @indepnormal(m\_chance, ω\[i=1:numfarms\], mean=0, var=farms\[i\].σ^2) But I met issues, fol…

---

## [Struggle at using JuMP/MathOptInterface for calculating number of constraints](https://discourse.julialang.org/t/struggle-at-using-jump-mathoptinterface-for-calculating-number-of-constraints/116275)

<div class="topic-metadata">

**Author:** [@SSGD](https://discourse.julialang.org/u/SSGD)\
**Replies:** 6\
**Last updated:** [June 29, 2024, 4:59pm UTC](https://discourse.julialang.org/t/struggle-at-using-jump-mathoptinterface-for-calculating-number-of-constraints/116275 "2024-06-29T16:59:01Z")

</div>

Hello :smiley: I am using JuMP to solve a chance-constrained optimization, the original package is very old and I met issues of reproducing it. Following is one package I am trying to solve but stuck for more than a we…

---

## [Chi2 (chisq) fit non-convergence using Optimization.jl](https://discourse.julialang.org/t/chi2-chisq-fit-non-convergence-using-optimization-jl/116313)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 5:16pm UTC](https://discourse.julialang.org/t/chi2-chisq-fit-non-convergence-using-optimization-jl/116313 "2024-06-27T17:16:26Z")

</div>

using CairoMakie, FHist using Optimization, OptimizationOptimJL, OptimizationMultistartOptimization hist\_mjj12\_rosa = Hist1D(; binedges=0:2:1000, bincounts=\[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0…

[Previous page](https://discourse.julialang.org/tag/optimization/187.md?match_all_tags=true&page=4&tags%5B%5D=optimization)

[Next page](https://discourse.julialang.org/tag/optimization/187.md?match_all_tags=true&page=6&tags%5B%5D=optimization)
