algorithmic modeling for Rhino
Use the difference with the value as a optimization value.
So if you want to optimize for the equality, you can use the Absolute(value a - value b) as a minimize optimization value or -Absolute(value a - value b) as a maximize value
Yup, like Arend said. Galapagos is not a constraint-solver, so you have to encode deviations from constrained states as penalty functions. Abs(A-B) often works, sometimes you need to add some weighting to it, like 1000*Abs(A-B), and sometimes the penalty requires polynomial behaviour Abs(A-B)²
--
David Rutten
david@mcneel.com
Hi Arend and David,
Thank you for your answer. I'm sorry I make a mistake. The image is to show the inequality. And my question is just how to deal with the inquality constraint. I also have a wonder when the optimization component judge whether the individule meet the constraints, before or after the population generate?
Bests,
Dan
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by