# The objective function sparse is not supported by JuMP in julia

**URL:** <https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, optimization, sparse, nonlinearsolve, linearsolve\
**Created:** [November 3, 2022, 5:13pm UTC](https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726 "2022-11-03T17:13:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [November 3, 2022, 7:30pm UTC](https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726/8 "2022-11-03T19:30:25Z")

</div>

I think you need to step back and think about what you’re trying to achieve.

Do you have, on a piece of paper, a mathematical formulation of your problem as a (mixed-integer) linear program?

- What are the decision variables?
- What are their bounds?
- What are the constraints?
- What is the objective function?

It doesn’t make sense to minimize a vector of numbers, which is what `@objective(model, min, c)` is trying to do.

---

_[View the full topic](https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726)._
