Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'basic function definition with sums/lists' topicStudent Support Forum > General > "basic function definition with sums/lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Bob
05/25/04 04:35am

I am a beginner, and I'm sure this is easy for you veterans out there, but...
I'm working on an optimization program with a number of deisgn variables. My question is how to define a function of a number if lists.
I have lists of constants involved in the system, along with a single list of the design variables. I am trying to minimize an objective function which is two sums. I have each of the lists indexed to the sum iterators, and when I simply use f=(my function), I get a correct answer for my test case. But, I cannot seem to find the correct format/syntax for the form, f[x_, y_, z_, a_]:= (myfunction).
I will continue to pore over the Mathematica book, but I would appreciate any help.
I've attached a portion of a notebook.

Attachment: help note!!.nb, URL: ,

Subject (listing for 'basic function definition with sums/lists')
Author Date Posted
basic function definition with sums/lists Bob 05/25/04 04:35am
Re: basic function definition with sums/lists Carlo 05/29/04 1:32pm
Re: basic function definition with sums/lists Henry Lamb 05/30/04 00:43am
Re: basic function definition with sums/lists John Leko 06/08/04 09:11am
Next Comment >Help | Reply To Topic