# What are different types of functions in Julia and what are the differences between them?

**URL:** <https://discourse.julialang.org/t/what-are-different-types-of-functions-in-julia-and-what-are-the-differences-between-them/98113>\
**Category:** General Usage\
**Tags:** question, error, syntax, optimization, function\
**Created:** [April 30, 2023, 6:08am UTC](https://discourse.julialang.org/t/what-are-different-types-of-functions-in-julia-and-what-are-the-differences-between-them/98113 "2023-04-30T06:08:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![meet.saiya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/meet.saiya/32/49312_2.png) [@meet.saiya](https://discourse.julialang.org/u/meet.saiya)\
**Post date:** [April 30, 2023, 8:39am UTC](https://discourse.julialang.org/t/what-are-different-types-of-functions-in-julia-and-what-are-the-differences-between-them/98113/3 "2023-04-30T08:39:26Z")

</div>

The `fs` and `dfs` are from the sigmoidal programming library mentioned in the link earlier and they are not in my code. I just copied one of the examples in the repo and ran it on my system. That seems to work but when I do it myself, it throws up errors.  
`states`, `actions` are used to define the constraints and this issue is specific to objective function, ergo they’re unrelated I guess, however, I am open to sharing entire code if that helps in any way. `b` is a model parameter and is between 0 to 1. So what I basically want to do is generate a list of functions with `coeff[i]*x^b` where I can change b at the top, where I assign different values to different parameters of the model and it would work out. Or so I think. `coeff[i]` is basically the cost of the associated variable.

Here is the link to my other, related question: [Community post](https://discourse.julialang.org/t/error-code-for-glpk-and-sigmoidalprogramming/98043)

---

_[View the full topic](https://discourse.julialang.org/t/what-are-different-types-of-functions-in-julia-and-what-are-the-differences-between-them/98113)._
