PhD Candidate in Dynamic Allocation of Resources in Short-term Power and Flexibility Markets