-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use of constraints #43
Comments
@GhostDeini Yes it is, thanks for asking! The easiest way is to provide an initial guess of concentration numbers in the fit method -- setting the first entry to 1.0 -- then use the c_fix=[0] to fix the first concentration profile. Example:
Does that answer your questions, and anything else I can help you with? |
I keep getting this error when I give initial estimates for the concentration profiles: Error increased above fractionalctol_increase (C iter). Exiting Is it possible to give initial estimates for the spectra and also the mentioned constraint for the concentrations? Thank you. |
You have a few options. You can increase the tol_increase in the instantiation of McrAr: You can absolutely input an S=S_init and C=C_init and you probably have to select c_first=True or False in the fit method. There are a few other solutions I can think of, but maybe if I understand your use-case a little more, I can come up with a solution. Feel free to post more here or send me an email to charles.camp@nist.gov |
Hi, is it possible to add a constraint for the MCR ALS method such that the first value of one of the concentration profiles must be equal to 1?
The text was updated successfully, but these errors were encountered: