tomas3svoboda / ChroMo

Chromatography model determination
2 stars 0 forks source link

Lev2_Loss_Function.py #14

Open meloun67 opened 2 years ago

meloun67 commented 2 years ago

Function calculates loss value for level 2 sub-optimization of the main bi-level optimization

meloun67 commented 2 years ago

Funny, this function is simple sum of Single_Loss_Function() for one component in all its experiements.

Caution!

It calls Sigle_Loss_function with the same decision variables (for one component) of the level 2 optimization (these are disperCoef, henry/langmuir constant, saturationCoef) - it must know if the component is solved bz lin/nonlin solver. It uses same porosity (defined by level 1 optimizer). BUT! The experimentParameters (feedTime, feedConc, flowRate...) are different for each Single_Loss_Function call!!