# add a constraint to a DQN

I have a DQN (with 5 state variables) but I want to add a constraint to it such as (p<10), which p is a parameter which is not one of the state variables. However, there is a hide relation between it and the cost function constants.

My cost function is : min (Aa+Bb+Cc) which A,B,C are constant and there is a hide relation between A,B,C, and p. (a,b,c are 3 of my state variables) What about your idea to add this constraint to DQN?