I'm fairly new to reinforcement learning concepts, and I'm trying to implement a simple custom environment. In my custom environment, I have a scenario where I have multiple continuous state spaces, for example, length(l), and breadth(b), from which I calculate say, area(a) = l*b. I calculate the reward based on the area. Here I check if the area lies between the range I'm expecting it to and reward it accordingly.
Since my reward is based on the area which is f(l, b) = l*b, should I declare the observation space as the range of values my area can attain? Or should I declare my observation space as the values the length(l) and breadth(b) can attain? Or is my understanding wrong?
Area(a) = f(l, b) = l*b
Reward = +1 (if 15 < a < 20)
-.1 (otherwise)