A question: I have a stochastic optimization process that tries to minimize cost function over certain space of arguments. It has a pool of candidates, out of which it picks a subset probabilistically, weighted for small cost function value. Then it adds every item to the original set with a simple modification whose nature is probabilistically selected from candidate subcomponents most affecting the cost. Then, candidate set is contracted back to original size by again choosing...
candidates on basis of the cost function. And this is repeated over and over.
Once I recalled this kind of method from some entirely different context and understood how to evolve the candidates, it came as quite efficient-looking solution for this question: mathematica.stackexchange.com/questions/88118/…
I think you are actually not doing anything wrong but have found one of those cases where the automatic dependency tracking doesn't work (I think this is a bug). You can make the code work (version 10.1 on Windows) by explicitly telling the last Dynamic to track choices:
Dynamic[choices,Tracked...
I marked this question as a duplicate and I was joined by Community which closed the question. Why did Community do this and how does it decide my duplicate call was correct?
Hmmh... how do I perform geometry on an arbitrary surface? Both in Mathematica and in general.
Like, I have a well-behaved 2D surface embedded in 3D space, and I want to ask a question: what points on the surface are at distance r from two other points?
@chuy I don't believe it quite succeeds in that. What I was thinking of is, say, having a torus. Now, I paint a spot on it, and want to continue painting spots on its surface in a manner that over "tape measure" on the surface, every new spot is as close as possible to the previous ones, but not overlapping.
I'm thinking mostly of visual stuff on practice, but odd constructs like print halftoning you can see on paper, being embedded on complicated geometric surfaces, just for fun.