algorithmic modeling for Rhino
Hi, I've been working on slightly similar issue as well. I think you should try this
Cheers!
Hi, thanks for the reply!
So when I want to maximize certain objetive up to A (let's say 300), I need to make hard constraint:
[True will come out if the objective is less than 300],
and set the number to be 'maximized' in Octopus?
sorry for the so late reply!
Octopus is trying to maximize (or minimize) a number so create a integer evaluation of how close you are getting to the target number. For example: 1/(individual's value - target value) as the individual's value gets closer to the target value, the number gets closer (maximized) to 1/1. You may want to add small decimal value just to avoid the 'divide by 0" error in case the individuals value hits target exactly. So... 1/ (individual's value - target value + 0.01). Set the "0.01" as your tolerance value.
thanks for the interesting reply! will try it out soon!
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