Message Boards Message Boards

2
|
3987 Views
|
6 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Constraints in the function MultiNonlinearModelFit

Dear All, I would like to introduce constraints in the MultiNonlinearModelFit function.I have followed the usual format for declaring constraints as shown below but it seems to be problematic.

fit = MultiNonlinearModelFit[{Abs380, Abs450, 
    Abs490}, {model380[k3, kr3, k4, k5, kr5, ea380, eh380, ef380, 
      erS380][t], 
    model450[k3, kr3, k4, k5, kr5, ea450, eh450, ef450, erS450][t], 
    model490[k3, kr3, k4, k5, kr5, ea490, eh490, ef490, erS490][t], 
    k4 > 640000, k5 < 0.1, 
    kr5 > 15000}, {{k3, 36}, {kr3, 0.4}, {k4, 700000}, {k5, 
     0.07}, {kr5, 16000}, {ea380, 6200}, {eh380, 8200}, {ef380, 
     12800}, {ea450, 8500}, {eh450, 2400}, {ef450, 2800}, {ea490, 
     5400}, {eh490, 1200}, {ef490, 3000}, {erS380, 4500}, {erS450, 
     2700}, {erS490, 1000}}, {t}];

Does the MultiNonlinearModelFit function allow constraints on parameters? Looking at the function in detail, the answer to this question seems positive but I don't understand why mathematica doesn't understand the code. Note that the message appears as soon as I add these constraints. Thank in advance for all your advices. Best Hélène

6 Replies

Thank for you your advice, I will.

Posted 4 years ago

Add a comment to this answer asking for an example with constraints.

POSTED BY: Rohit Namjoshi

Hi, Does no one have any idea how to introduce constraints in the MultiNonlinerModelFit function?
Thank you in advance for all your advice Hélène

Hi Hélène

Then you should indicate that in your post, so that anyone who wants to help can know how this function works. Thanks.

POSTED BY: Ahmed Elbanna

Hi, No, it is actually the MultiNonlinerModelFit function which is a general form of the nonLinearModelFit. You can find this function by following the link : https://resources.wolframcloud.com/FunctionRepository/resources/MultiNonlinearModelFit

Best Hélène

Could you please make sure your code is revised? for example there is no such function called MultiNonlinearModelFit. I think you mean NonlinearModelFit

POSTED BY: Ahmed Elbanna
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract