ev, subst, funmake, quote, apply ... argh!



Albert Reiner wrote:
> [dlakelan <dlakelan at street-artists.org>, Tue, 25 Dec 2007 11:07:05 -0800]:
>> now for a regular function, err(a,b,c,d) will be evaluated BEFORE
>> minimize_sa is called and therefore fail because err can't handle
>> symbolic values in any useful way... so my inclination is to quote it...
>>
>> minimize_sa('err(a,b,c,d),....)
> 
> AFAIU, this only quotes ERR, but not the whole expression.
> '(err(a,b,c,d)) may or may not be what you need.

Aha, I think this is the key to my confusion.

thanks again to all for the help. The example problem was of course just 
an example, and as several people noted, it wasn't a working one. I 
constructed it in the email only and didn't find the obvious bugs...

Thanks also for the pointer to the simplex method code and linear 
programming as a special case. i plan to eventually have fairly 
nonlinear objective functions. These simplified test cases are just for 
testing out my code.