Note that there are some explanatory texts on larger screens.

plurals
  1. POGoal Seek, in Mathematica
    text
    copied!<p>For an experiment, we generated in Matlab some images made out of 8 Disks. We constrained, the minimum distance between the disks and between the disks and the frame as well as the location of the Disks Center Of Gravity (COG). Bellow an example of a composition with the COG on the upper lift "third"</p> <pre><code>FraXYs = {{4.32, 3.23}, {35.68, 26.75}} stiDisks = {{{8, 11}, 1}, {{10, 17}, 1}, {{16, 24}, 1}, {{25, 22},1}, {{31, 22}, 1}, {{7, 21}, 2}, {{16, 12}, 2}, {{19, 22}, 2}} Graphics[{White, EdgeForm[Thick], Rectangle @@ FraXYs, Red, Disk[{14.77, 18.91}, 1], Blue, Opacity[.6], EdgeForm[Black], Blue, Thickness[0.003], Opacity[1], Black, Disk[#[[1]], #[[2]]] &amp; /@ stiDisks}, ImageSize -&gt; {400, 300}] </code></pre> <p><img src="https://i.stack.imgur.com/Vpf8B.png" alt="enter image description here"></p> <p>I would like to generate those stimuli in Mathematica. Below are the element (features and constraints) I am dealing with. The measures are in Cm. The Center Of Gravity (COG) of the shapes is defined as the area weihtgted location of the disks.</p> <p><strong>The Features :</strong></p> <p><em>Stimuli Frame :</em> {{xMin,xMin},{xMax,yMax}}</p> <pre><code>FraXYs = {{4.32, 3.23}, {35.68, 26.75}} </code></pre> <p><em>5 Small Disks :</em> with radius</p> <pre><code>rSmall=1 </code></pre> <p><em>3 Large Disks :</em> with radius</p> <pre><code>rLarge=2 </code></pre> <p><strong>The Constraints :</strong></p> <p><em>Minimum distance between the shapes edges :</em></p> <pre><code>minDistSha=1 </code></pre> <p><em>Minimum distance between the shapes edges and the frame border :</em></p> <pre><code>minDistFra=1 </code></pre> <p><em>Distance of shapes COG from the center :</em></p> <pre><code>minDistCogCenter=2 </code></pre> <p>Potentially, I will need to constraint the COG of the disks to be on a certain angle from the center (theta coordinate in a polar system?). So I could select the disks coordinates constraining their COGs to be located every 22.5 degree in a polar coordinate</p> <pre><code>angleBin=22.5 </code></pre> <p>Is there useful Functions in Mathematica to achieve the selection under constraints aside of <code>Selct</code>.</p> <p>I would be curious to know if a closed formula to generate 1 composition with a particular COG location is possible.</p> <p>Indicatively, I will need to get a pool of 1000 compositions. Using the "theta constraints"of 36 degrees, I should extract 10*100 composition with their COG located on the 10 different theta bars at a minimum or fixed distance from the center.</p> <p><img src="https://i.stack.imgur.com/efEZN.png" alt="enter image description here"></p> <p>Please tell me if clarifications are needed. Thank You for your attention.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload