Student Support Forum: 'Max with variable number of inputs' topicStudent Support Forum > General > "Max with variable number of inputs"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Dave Gaebler 02/21/12 12:08pm I'm trying to figure out how to maximize a function when the number of inputs is variable (or, equivalently, the input is a vector of unknown length). An example of the type of problem I have in mind: Maximize the product (1-x_1)(1-x_2)...(1-x_n) given that x_1,...,x_n are positive real numbers which add up to 1. The tricky bit here is that I want to maximize over all values of n. (For the problem I just mentioned I know how to prove analytically that the maximum is 1/e, but the question is how to feed a problem like this into Mathematica!) URL: ,

 Subject (listing for 'Max with variable number of inputs') Author Date Posted Max with variable number of inputs Dave Gaebler 02/21/12 12:08pm Re: Max with variable number of inputs toen 02/22/12 09:22am Re: Re: Max with variable number of inputs Dave Gaebler 03/06/12 10:59am
 Next Comment > Help | Reply To Topic