Grasshopper

algorithmic modeling for Rhino

How to Set Specific Target As The Required Objective in Octopus?

Usually we minimize/maximize certain objective(s).

But if I want to set it on specific number (let's say illuminance of 300 lux), how do I do that in Octopus? Thank you

Views: 1031

Replies to This Discussion

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!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service