Board index » delphi » Discrete Event SImulation for Delphi Problem

Discrete Event SImulation for Delphi Problem

Discrete Event Simulation for a factory:

Got a problem I want to press a button that will simulate the factory
jobs through a number of machines I have got the barebones of the
program written (email me if you need to see the additional code)

Below:

Is the pseudocode of what I need to do:

Make Production Plan

Read production requirement list (containing products)
initialise factory
initialise clockand date
initilalise productionlist

while (list not empty) do
 for (next time slot) do
   freemachines()
   allocatejobstomachines();
  outputdetailstoproductionplan();
   advancetimeslot();
end for
end while
print production plan();
end;

freemachines()
  for (allmachines) do
    if (machineinuse) then
     if (jobnowcompleted) then
           setmachineavailable();
           addservicebacktopool();
           markthisstagecompleted();
    end if
   end if
end

allocatejobstomachines()
successs:=true
while success do
    getprioritytask
    assigntasktomachine (success)
end do
end
assigntasktomachine(sucess)
sucess:= machineavailable and serviceavailable
if sucess then
 set machineavailable;
 removeservicesfrompool
end if
end

Sent via Deja.com
http://www.deja.com/

 

Re:Discrete Event SImulation for Delphi Problem


And the question being...???

--
Bjoerge Saether
Consultant / Developer
http://www.itte.no
Asker, Norway
bjorgeremovet...@itte.no (remove the obvious)

<jonnygr...@my-deja.com> skrev i melding news:960v1g$ucs$1@nnrp1.deja.com...

Quote
> Discrete Event Simulation for a factory:

> Got a problem I want to press a button that will simulate the factory
> jobs through a number of machines I have got the barebones of the
> program written (email me if you need to see the additional code)

> Below:

> Is the pseudocode of what I need to do:

> Make Production Plan

> Read production requirement list (containing products)
> initialise factory
> initialise clockand date
> initilalise productionlist

> while (list not empty) do
>  for (next time slot) do
>    freemachines()
>    allocatejobstomachines();
>   outputdetailstoproductionplan();
>    advancetimeslot();
> end for
> end while
> print production plan();
> end;

> freemachines()
>   for (allmachines) do
>     if (machineinuse) then
>      if (jobnowcompleted) then
>            setmachineavailable();
>            addservicebacktopool();
>            markthisstagecompleted();
>     end if
>    end if
> end

> allocatejobstomachines()
> successs:=true
> while success do
>     getprioritytask
>     assigntasktomachine (success)
> end do
> end
> assigntasktomachine(sucess)
> sucess:= machineavailable and serviceavailable
> if sucess then
>  set machineavailable;
>  removeservicesfrompool
> end if
> end

> Sent via Deja.com
> http://www.deja.com/

Re:Discrete Event SImulation for Delphi Problem


On Fri, 9 Feb 2001 15:49:22 +0100, "Bj?rge S?ther"
<REMOVE_bsaether@THIS_online.no> waffled on about something:

Quote
>And the question being...???

How much to build the factory?

:o)

Re:Discrete Event SImulation for Delphi Problem


Quote
On Fri, 09 Feb 2001 14:32:15 GMT, jonnygr...@my-deja.com wrote:
>Discrete Event Simulation for a factory:

>Got a problem I want to press a button that will simulate the factory
>jobs through a number of machines I have got the barebones of the
>program written (email me if you need to see the additional code)

>Below:

>Is the pseudocode of what I need to do:

Find a copy of Simula 67 :-)
It is designed for such purpose

Other Threads