- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please help with this read&write problem in an i/o statement, I can't get it work for a few days!
I currently use a simplex maximization routine [DNEQBF], it behaves very unstable [can't fidn the root], so I would like to try this:
>>read and write an array of valuesto a file so that the new iteration in [DNEQBF] will be readingvalues from the array written from the last iteration.
Currently I did not specify 'action' in an open statement, so as to allow the file to be read and write. But it does not seem to be working.
You can see it in the two small subroutines (in the middle of the file): 'geteff' and 'solve_pbm'. In 'geteff', I initialize the file if use at the first time, and then treat the file as a 'read' file. In 'solve_pbm' subroutine, I write inputs to the same file, but when I print out the values, everything is zero!
What mistakes did I make?
Thanks a bunch!
Message Edited by lywong on 07-15-2004 08:41 PM
Message Edited by lywong on 07-15-2004 08:44 PM
Message Edited by lywong on 07-16-2004 08:40 AM
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page