-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multistart optimization with parameter constraints #1334
Comments
Hi aidinbii, In the current implementation, parameter-dependent constraints are not allowed. However, there is an easy way to go around this problem. In your model, you can define the p3 parameter using the following assignment rule p3 := p2 + p23_diff. Then if you estimate the two parameters p2 and p23_diff, you can satisfy the p2<=p3 bound by setting the lower bound for p23_diff to 0. Hope this helps. Best, |
@Doresic, thanks for the reply For instance:
I get an error:
|
Yes, it should work. So just removing
Should make it work. |
@Doresic , there is another issue
I get
I guess I also need to change the conditions? |
Did you re-compile the model since changing the petab problem (removing the parameter from the parameter df)?
or deleting the compiled model (by default it is in the |
Yes, I did. The model is compiled without problem The issue is with the problem |
Hmm tested it myself now. It should work nicely. |
I removed Ka,Ke,Vdf from parameters table
|
My mistake. I found the error. The definition of Ke_3 in the model should not be with an assignment Removing Ka, Ke, Vdf from the parameter table is correct, as those are not the parameters you will estimate. |
But how to define an initial assignment in the yaml file?
Also, where is the example for Antimony? |
Not sure. I haven't used yaml2sbml much myself. If it's possible it should be somewhere in the documentation https://yaml2sbml.readthedocs.io/en/latest/ Alternatively, you can use Antimony from Tellurium. A simple and similar way of creating SBML models. https://tellurium.readthedocs.io/en/latest/antimony.html . With Antimony it definitely works, tried it myself. As this is no longer pypesto's problem, I'll close this issue. But feel free to open up if there are any more problems with pypesto. Best, |
Hello, is there a way to specify parameter constraints for parameter estimation.
For example, if I have a parameter vector: (p1, p2, p3, p4). And I want a constraint: p2 <= p3.
Similar to this
Thank you
The text was updated successfully, but these errors were encountered: