Added to validation to catch the case where residual capacity is higher than capacity_gross_max, which leads to infeasibilities.
I've also moved the other technology class validation from the technology class, to the model class. As the validation requires the model to be composed first (broadcasted across all dimensions), which requires all sets (years, technology ids, commodity ids etc).
Checklist
[ ] Dependencies install correctly in a clean environment and code executes;
[ ] Test coverage extended; created tests fail without the change (if possible);
Description
Added to validation to catch the case where residual capacity is higher than capacity_gross_max, which leads to infeasibilities.
I've also moved the other technology class validation from the technology class, to the model class. As the validation requires the model to be composed first (broadcasted across all dimensions), which requires all sets (years, technology ids, commodity ids etc).
Checklist