# Matrix Constraints in JuMP

**URL:** <https://discourse.julialang.org/t/matrix-constraints-in-jump/116663>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [July 5, 2024, 1:42pm UTC](https://discourse.julialang.org/t/matrix-constraints-in-jump/116663 "2024-07-05T13:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [July 5, 2024, 2:45pm UTC](https://discourse.julialang.org/t/matrix-constraints-in-jump/116663/2 "2024-07-05T14:45:21Z")

</div>

> [@Gagan\_Meena](#):
>
> DACCPO\Main.jl:13

Look in your \DACCPO\Main.jl file in 13th line. You are getting error `type` conversion.

> [@Gagan\_Meena](#):
>
> ERROR: MethodError: Cannot `convert` an object of type  
> Vector{Int64} to an object of type  
> Base.OneTo

and learn `quoted code` posting method to post your code. [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

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