Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Residence Size Constraints #26

Open
clucky opened this issue Jun 20, 2014 · 0 comments
Open

[Feature] Residence Size Constraints #26

clucky opened this issue Jun 20, 2014 · 0 comments

Comments

@clucky
Copy link

clucky commented Jun 20, 2014

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. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant