From: rsch tosh on
Hi when I try to run my m file i get these errors, can anyone comment on such errors

Error using ==> gads\private\poptimfcnchk
PATTERNSEARCH cannot continue because user supplied objective function failed with the following error:
Error using ==> fgets
Invalid file identifier.
From: Walter Roberson on
rsch tosh wrote:
> Hi when I try to run my m file i get these errors, can anyone comment on
> such errors
>
> Error using ==> gads\private\poptimfcnchk
> PATTERNSEARCH cannot continue because user supplied objective function
> failed with the following error:
> Error using ==> fgets
> Invalid file identifier.

If you opened a file and passed the file identifier in to a routine, then you
seem to have not checked whether the file open succeeded before you made the call.

If you passed a file name to a routine, the file appears not to exist --
though the routine should, in that case, produce a better error message.
From: rsch tosh on
thank u, Ill try to look into that part. it seems that the problem lies there