Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Help on code and code style' topicStudent Support Forum > General > Archives > "Help on code and code style"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Help on code and code style')
Author Date Posted
Help on code and code style Seth 03/31/10 9:56pm
Re: Help on code and code style Nasser M. Ab... 04/01/10 10:54pm
Re: Help on code and code style yehuda ben-s... 04/02/10 05:01am
Re: Help on code and code style Seth 04/03/10 09:42am
Re: Re: Help on code and code style Peter Pein 04/04/10 09:56am
Re: Re: Re: Help on code and code style Seth 04/07/10 11:17pm
Next Comment >Help | Reply To Topic