# How to use for loop or collection in SemialgebraicSets?

**URL:** https://discourse.julialang.org/t/how-to-use-for-loop-or-collection-in-semialgebraicsets/56106
**Category:** General Usage
**Tags:** jump, polynomials
**Created:** [February 26, 2021, 6:11pm UTC](https://discourse.julialang.org/t/how-to-use-for-loop-or-collection-in-semialgebraicsets/56106 "2021-02-26T18:11:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aliceee](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aliceee](https://discourse.julialang.org/u/aliceee)
#### Post date: [February 26, 2021, 6:11pm UTC](https://discourse.julialang.org/t/how-to-use-for-loop-or-collection-in-semialgebraicsets/56106/1 "2021-02-26T18:11:31Z")

</div>

I’m trying to specify a semialgebraic set in a SumofSquare model:  
`@set vec(A*vec_x1)[1]>=0 && vec(A*vec_x1)[2] && vec(A*vec_x1)[3]>=0&&vec(A*vec_x1)[4]`  
where A is a two-dimensional polyvar, vec\_x1 is a constant vector. I wonder how can I rewrite this semialgebraic set using for loop or collection so that it can be generated to a larger scale. Thanks in advance for your help!
