Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Conditionals for lookup table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126739] Conditionals for lookup table
  • From: "Mitonics" <mitonics at verizon.net>
  • Date: Sun, 3 Jun 2012 05:00:45 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Reply-to: <mitonics at verizon.net>

I have a long list of conditions to program. I'd like guidance as to the
best or fastest way of doing this in Mathematica.

First I generate which initial conditions apply. Then I want to go to the
lookup table to see which action to take. Then I generate another set of
conditions and I want to lookup which action to take. and so on.

For example the concept for the lookup table will include various
permutations of conditions. Each permutation leads to a different action as
follows:

If Acondition1 and Bcondition1 are True, then do Action 1

If Acondition1 and Bcondition2 are True, then do Action 2

If Aconditon2 and Bcondition1 are True, then do Action 3

Etc. 

 

There are perhaps 100 different Actions for what I'm trying to do.

 

Mike

 


  • Prev by Date: Re: Using CountryData to Get US Population by State
  • Next by Date: Re: Nesting NMaximize
  • Previous by thread: Re: new functional operator
  • Next by thread: Re: Sum of Products