News for hackers. Stuff that matters.
Re:The story BCG offered me $16,000 not to tell by eru on Sunday April 11, 2010 @08:12PM (#1257997)
The joys of linear optimization. Do you know if it also supports integer optimization? (Doing that fast enough would be a feat in pure Excell.)
Re:The story BCG offered me $16,000 not to tell by 3pt14159 on Monday April 12, 2010 @12:21AM (#1258396)
There are multiple versions of Solver. To get the free one to do this requires a hack (using some sort of Fourier Transform into a cell or something, I think there are multiple ways). There are paid versions of Solver that are far more powerful, with fully developed APIs. Also, Iron Python can be used with Excel, which makes the whole thing really intense because many Python Libs can be used. Excel truly is Microsoft's shiniest, best piece of software.
Re:The story BCG offered me $16,000 not to tell by rbanffy on Monday April 12, 2010 @08:32AM (#1258978)
> Excel truly is Microsoft's shiniest, best piece of software.

I would grant that honour to SQL Server. In fact, I regard SQL Server as Microsoft's third best product, lagging behind both the Natural Keyboard series (a must) and their mice ("honest value", reliable and comfortable). Never thought that, but Excel could be the fourth product in this list.

Re:The story BCG offered me $16,000 not to tell by jodrellblank on Monday April 12, 2010 @04:02PM (#1260195)
Excel is scriptable by COM and therefore VBSript, Python+PyWin32, and any other COM scripting language.

Presumably you mean IronPython integration in a different sense due to it being a .Net library? Got any links with examples of how that looks / what it can do?

Re:The story BCG offered me $16,000 not to tell by 3pt14159 on Monday April 12, 2010 @10:44PM (#1261034)
You are totally right, it had been a while since I had looked into this. I was confusing (blending together?) pyinex and IronPython. You are right, IronPython (and tons of other languages) all have access to the .Net libs, but pyinex is what I was thinking of. Apparently, though, it is not fully developed yet.

http://code.google.com/p/pyinex/

Re:The story BCG offered me $16,000 not to tell by jodrellblank on Tuesday April 13, 2010 @12:17AM (#1261131)
I was thinking you were going to refer to .Net linking with Office, which seems to be something different from the COM automation, and more complicated than I've ever been interested in.

That, however, looks pretty darn cool. On the odd occasion I've used Python/COM/Excel together, I've really wished for a Python shell inside Excel to do things like:

  for cell in Range('a1:a10'):
      cell.Value = cell.Value.split('-')[0]
or whatever. I don't know if Pyinex will quite do that, but thanks for the link!
Re:The story BCG offered me $16,000 not to tell by gilest on Monday April 19, 2010 @10:07AM (#1276710)
You can do almost exactly that in Resolver One (http://www.resolversystems.com/), which has got a Python console as well as allowing Python functions and Python syntax in the grid. It's a separate spreadsheet program, though, not an Excel plug-in.

Alternatively, there's PyXLL (http://www.pyxll.com/), which lets you write Excel user-defined functions in Python, but doesn't have a console.

(Full disclosure: I work for Resolver Systems.)

Re:The story BCG offered me $16,000 not to tell by ShabbyDoo on Sunday April 11, 2010 @08:17PM (#1258008)
I believe it does. And, IIRC, it's a native code library that uses Excel for data input and results presentation.
Re:The story BCG offered me $16,000 not to tell by Rod on Monday April 12, 2010 @12:40AM (#1258417)
Give Solver Foundation a try: http://www.solverfoundation.com