Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16414

Re: Compact formulation of array of constraints

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Ray Koopman <koopman@sfu.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Compact formulation of array of constraints
Date Mon, 13 Jan 2014 06:55:56 +0000 (UTC)
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <lb02ls$dn0$1@smc.vnet.net> (permalink)
Lines 20
Organization Time-Warner Telecom
NNTP-Posting-Date 13 Jan 2014 07:01:09 GMT
NNTP-Posting-Host b612dfb9.news.twtelecom.net
X-Trace DXC=Q??N4>bKIkE;C]50>Q8TTIC_A=>8kQj6M;[h;PUXBgbDb4gWQ>GE5;AEFiONJ7[GoF^k53fS\@JNL
X-Complaints-To abuse@twtelecom.net
Xref csiph.com comp.soft-sys.math.mathematica:16414

Show key headers only | View raw


If all the constraints must be satisfied then you need to AND them:

And @@ Array[x@# >= 0 &, 6, 0]

x[0] >= 0 && x[1] >= 0 && x[2] >= 0 && x[3] >= 0 && x[4] >= 0 && x[5] >= 0

----- 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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Compact formulation of array of constraints Ray Koopman <koopman@sfu.ca> - 2014-01-13 06:55 +0000

csiph-web