# How to use functions in jump's target functions

**URL:** https://discourse.julialang.org/t/how-to-use-functions-in-jumps-target-functions/67019
**Category:** Optimization (Mathematical)
**Tags:** jump
**Created:** [August 26, 2021, 6:51am UTC](https://discourse.julialang.org/t/how-to-use-functions-in-jumps-target-functions/67019 "2021-08-26T06:51:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [August 26, 2021, 8:17am UTC](https://discourse.julialang.org/t/how-to-use-functions-in-jumps-target-functions/67019/2 "2021-08-26T08:17:05Z")

</div>

Please don’t post the same question multiple times:

> [@It's running too long](https://discourse.julialang.org/t/its-running-too-long/66921):
>
> I ran the following code for 7 hours without any results, how can I modify it? Thanks using Optim, LinearAlgebra, Statistics, Plots, QuantEcon, Distributions, Interpolations, NLsolve, Random, JuMP, GLPK import Ipopt β = 0.88 θ = 3.4 Nb = 1000 Nz = 50 v = 0.19 α = 0.33 δ = 1.5 χ = 0.05 ϵ = 0.335 γ = 0.89 ψ = 0.95 ξ = 0.8 grid\_z = range(1, 10, length = 50) grid\_b = range(0, 5, length = 1000) grid\_b = collect(grid\_b) grid\_z = collect(grid\_z) dist\_z = …

---

_[View the full topic](https://discourse.julialang.org/t/how-to-use-functions-in-jumps-target-functions/67019)._
