t00thpick1/Residence

[Feature] Residence Size Constraints

Opened this issue · 0 comments

Currently I have noticed that there is a minX, minY, minZ, as well as maxX, maxY, maxZ in the configuration. Although this is easy to understand, it seems like it could be done better. Now that the Residence costs support formulas, why not also let size support formulas. Basically there would be the main element constraints in the configuration, and within it are the formula(s) for the constraints. constraints support all of the same variables and operators as costEquation, with the addition of "equal to (=)", "less than (<)", "greater than (>)", "less than or equal to (<=)" and "greater than or equal to (>=)".

constraints:
    - "xSize*ySize*zSize < 100000" #Volume has to be less than 100,000
    - "xSize <= 150" #The residence along the x axis must be less than or equal to 150
    - "ySize >= 5" #The residence along the y axis must be greater than or equal to 5
    - "zSize <= 150" #The residence along the z axis must be less than or equal to 150
    - "ySize <= (xSize*zSize)/10" #The residence along the y axis must be less than or equal to the product of x and z divided by 10.