Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16407 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2014-01-12 07:12 +0000 |
| Last post | 2014-01-12 07:12 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Compact formulation of array of constraints Bob Hanlon <hanlonr357@gmail.com> - 2014-01-12 07:12 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2014-01-12 07:12 +0000 |
| Subject | Re: Compact formulation of array of constraints |
| Message-ID | <latf82$8qd$1@smc.vnet.net> |
x[#] >= 0 & /@ Range[5]
{x[1] >= 0, x[2] >= 0,
x[3] >= 0, x[4] >= 0,
x[5] >= 0}
Thread[x /@ Range[5] >= 0]
{x[1] >= 0, x[2] >= 0,
x[3] >= 0, x[4] >= 0,
x[5] >= 0}
Bob Hanlon
On Sat, Jan 11, 2014 at 2:35 AM, Paul Smith <phhs80@gmail.com> wrote:
> Dear All,
>
> How can one formulate the set of constraints
>
> x[1] >= 0, x[1] >= 0, x[2] >= 0, x[3] >= 0, x[4] >= 0, x[5] >= 0
>
> by using a compact form?
>
> Thanks in advance,
>
> Paul
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web