Grasshopper

algorithmic modeling for Rhino

Hi. I would like to generate thee integer numbers with fixed sum. Can anyone give me some guidance for it?

ex)    say that I would like generate x,y,z with graph meeting the conditions below.

      x+y+z =100

     10x+30y+100z =12000 

Thank you for your help in advance.

regards

Views: 597

Replies to This Discussion

Attachments:

A compact solution taken from Wolfram Alpha:

The problem here is an intersection between 2 planes. So most of the times the result is a line.

Not sure if it will work. One thing that I think is necessary is that each unknown value needs to have domain. I will keep thinking. Thank you.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service