Open meloun67 opened 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!!
Function calculates loss value for level 2 sub-optimization of the main bi-level optimization