# JuMP in julia

**URL:** <https://discourse.julialang.org/t/jump-in-julia/89945>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, optimization, ipopt, nonlinearsolve\
**Created:** [November 8, 2022, 5:22pm UTC](https://discourse.julialang.org/t/jump-in-julia/89945 "2022-11-08T17:22:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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 9, 2022, 12:46am UTC](https://discourse.julialang.org/t/jump-in-julia/89945/7 "2022-11-09T00:46:57Z")

</div>

I’m going to gently remind you to step back and write down the formulation you want to achieve:

> [@The objective function sparse is not supported by JuMP in julia](https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726/8):
>
> 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.

Have you formulated a constraint like the following?

\sum\limits\_{i \in 1 \ldots I} a\_{ij} x\_i \le b\_j \quad \forall j\in 1\ldots J

What are the sets 1\ldots I and 1\ldots J? What are the decision variables x\_i? What are the data a\_{ij} and b\_i?

> this img below is the constraint, it needs to be greater than 1.

`PTV68` is a matrix of data. It does not contain any decision variables. It is not a constraint. Forcing a matrix of data to be greater than 1 does not have a mathematical meaning.

If you’re translating this problem from MATLAB, perhaps you could show the MATLAB code you’re trying to reproduce?

---

_[View the full topic](https://discourse.julialang.org/t/jump-in-julia/89945)._
