| Author |
Comment/Response |
Seth
|
03/31/10 9:56pm
I have the code in the attachment. The algorithm is simple (it is backtracking for line search), however i am having trouble.
First, it enters an infinite loop and im not exactly sure why. Since this happens alot, is there any way i can abort mathematica evaluation? Its really frustrating to have to restart mathemtica every time i mess up. Also, it seems the code is totaly screwed up, i keep getting errors.
Also, can someone suggest a more compact way/better code style to implement this? I would prefer to generalize this to any amount of variables(like mathematicas minimization functions), not just to two variables, but im not sure how.
Attachment: tmp.m, URL: , |
|