English
Experimente

2D-packages optimize

 

p.specht

Szenario: given seien The (yet disengaged) Innenmaße of/ one LKW-Ladefläche. which quadratischen Verpackungskartons fill these optimal from? this old Optimierungsproblem from the Logistik can only schrittweise concern, therefore here first once a "Simulation" in 2 Dimensionen. in the practice has here weites area on KI-Algorithms etabliert - of Ameisenalgorithmus up to selbstoptimierenden "Generativen neuronalen Netzen".
Window Title "2D-PACKING: Rechtecke ganzzahliger Seitenlänge"+\
" with jew. größtmöglichen Quadraten ausloten"
' CopyLeft (CL) 2012/12ff by P.woodpecker, Wien. No Gewähr!
Window Style 1048:Window 0,0 - %maxx,%maxy:Font 2
Randomize:cls 13158600+rgb(rnd(56),rnd(56),rnd(56))
declare z&,s&,n&
Print "   Höhe  (Lines): ";:input z&
Print " wide (Split): ";:input s&
rect

Repeat

    inc n&

    if z&>s&

        z&=z&-s&
        rect

    elseif z&<s&

        s&=s&-z&
        rect

    else

        BREAK

    endif

until 0

locate 20,20
print "Anzahl Squares: ";n&
waitinput
end

proc rect

    var a&=height(%hwnd)/6
    usepen 0,1,0
    usebrush 1,rgb(100,100,100)+rgb(rnd(156),rnd(156),rnd(156))
    rectangle (a&+z&),(a&+s&) - a&,a&

endproc

 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/08/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

698 Views

Untitledvor 0 min.
Ernst07/21/21
Sven Bader07/19/21
Uwe ''Pascal'' Niemeier06/13/21
p.specht06/05/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie