Skip to main content
17-Peridot
August 2, 2013
Solved

LeastSquaresFit Problem

  • August 2, 2013
  • 6 replies
  • 4119 views

Hello folks

when using LeastSquaresFit I'm getting an error notification: Unable to cast object of type 'Mcd.NumVal' to type 'Mpl.Run.Function'.

I'm using it for the first time so I'm not certain that the fault isn't mine. Any suggestions where to find the culprit?

Raiko

P.S.

I'm using MC 15 (M020) on a 64 bit Win 7 machine.

Best answer by VladimirN

Some adjustment for the "f" function:

Pic_1.png

6 replies

24-Ruby IV
August 2, 2013

Hi Raiko,

Any chance to see the worksheet?

Raiko17-PeridotAuthor
17-Peridot
August 2, 2013

Hello Vladimir,

sure here it is. As I said: I#m new to using the solver therefore it might be me doing something wrong. The error message however seems to indicate something's wrong with MC or my machine.

Thanks for your help

Raiko

VladimirN24-Ruby IVAnswer
24-Ruby IV
August 2, 2013

Some adjustment for the "f" function:

Pic_1.png

24-Ruby IV
August 2, 2013

May be this is a help for you:

MNK.png