# Vector multiplication

**URL:** <https://discourse.julialang.org/t/vector-multiplication/62830>\
**Category:** General Usage\
**Created:** [June 13, 2021, 9:25am UTC](https://discourse.julialang.org/t/vector-multiplication/62830 "2021-06-13T09:25:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BYS](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bys/32/25384_2.png) [@BYS](https://discourse.julialang.org/u/BYS)\
**Post date:** [June 13, 2021, 9:25am UTC](https://discourse.julialang.org/t/vector-multiplication/62830/1 "2021-06-13T09:25:00Z")

</div>

Hi, everyone  
I find there is a little different between

```julia
model2=Model()
h_set=Vector(1:10)
h0=Vector(1.1:0.1:2)
@variable(model2,h[h_set,1:20])
@constraint(model2,ones(10)'*(h0-h[:,1])==0)

```

and

```julia
model2=Model()
h0=Vector(1.1:0.1:2)
@variable(model2,h[1:10,1:20])
@constraint(model2,ones(10)'*(h0-h[:,1])==0)

```

the above one is wrong ,is there some better suggestions of the expression?  
Thanks a lot!
