An optimization problem Dear Group Members, I have a function Objective[ c_, p_, t_, l1_, l2_, MasterDisrcrit_,MasterPoints : {{_, _} ..}] that gives list of three numbers as output. Now my optimization problem is something like the following Max Objective[c,p,t,l1,l2,dat][[1]] with constraints as below for the parameters {c,p,t,l... 19 Jun 2010 08:00
Help defining options; selecting particular version of a function; Dear MathGroup: I'm working on building up a package of functions and I need some guidance. After several prior attempts, I'm learning the value in minimizing the number of named functions and maximizing what each can do. (BTW, is there a more technical term for this?--my goal, in part, is to demonstrate how ... 19 Jun 2010 08:00
Compiled function not working Hello, I've a function that I need compiled for better performances. ZsNoR[n_]=(3 4^(1+n))/(2+4^(1+n)) cf=Compile[{{code,_Integer},{nb,_Integer}},Module[{SwList=Reverse(a)IntegerDigits[code,2,nb]},\!\( \*UnderoverscriptBox[\(\[Sum]\), \(i = 0\), \(nb - 1\)] \*FractionBox[\(1\), \(ZsNoR[Part[SwList, i + 1]]\)]\... 19 Jun 2010 08:00
Floating point exception when taking a reciprocal of a list in v. I am running into a strange bug where taking reciprocals of a list of floating point numbers crashes the kernel with a floating point exception. This is on a Linux x86_64 system, Ubuntu 9.10, running Mathematica 7.0.1.0 Something like foo=Array[1.0&,1000]; 1/foo or foo=RandomReal/@Range[100]; 1/foo giv... 18 Jun 2010 01:32
Named patterns forbidden in Except? Hi, Consider this: In[1]:= Cases[{-0.5, 1, -3, 2/5, I}, Except[x_Integer]] During evaluation of In[1]:= Except::named: Named pattern variables are not allowed in the first argument of Except[x_Integer]. >> Out[1]= {} Why are named patterns not allowed in Except? Recently, during a course of mine (on ... 19 Jun 2010 08:00
possible bug with fraction box shortcut ctrl+/ Hello, All! I have faced the bug several times, and I don't quite understand what causes it. In some cases I install Mathematica and ctrl+/ works properly (creating a fraction denominator), but other times it works like shift+right arrow, extending selection to the left. Could somebody clear whether it can be ... 18 Jun 2010 01:32
Java heap space on Mac OS X not supported? Hi, I use DatabaseLink to access mySQL Databases and very large binary objects seem to blow up the java virtual machine, resulting in an... There are other posts about this, but they only conlude that there is an option for the Java-Runtime to extend the heap space, but that this Option is not supported on Mac OS... 18 Jun 2010 01:32
How to stop Nminimize... Hello all together, I have a question about NMinimize function. There are some open source optimization softwares in which user can follow goal function during calculation. Is there any possibilities to follow goal function graphically with respect to time? or how could I stop NMinimize function for instance ... 18 Jun 2010 01:32
Ballistic launch trajectory code I was wondering if anyone could point me toward a Mathematica based code or a package, commercial or otherwise, that can compute a ballistic launch trajectory. I am envisioning something that provides position, velocity, and acceleration state vectors as a function of time in an earth centered inertial frame. Ideal... 22 Jun 2010 07:10
Difficulty with saving Package .m files I am having difficulties in saving or editing the Package .m files. If I open a .m file and attempt to make any changes to it and then Save the file or even use Save As, then it always wraps every line with (* *) annotation brackets, making the file unusable when I attempt to load in the definitions with Get[]. ... 23 Jun 2010 02:59 |