Le mercredi 2 janvier 2019 à 11:15:48 UTC, minf...@arcor.de a écrit :
Am Mittwoch, 2. Januar 2019 12:11:10 UTC+1 schrieb minf...@arcor.de:
Am Mittwoch, 2. Januar 2019 11:52:30 UTC+1 schrieb Manuel Rodriguez:
Fuzzy control is a grammar driven control technique which allows
to realized sophisticated control systems. In the literature the standard example of a ball on a plate is often mentioned. The idea is to define some linguistic variables for example acceleration, position,
distance-to-trajectory and some rules like moveleft, moveup and stop. Then
a control program is created which is realizing the fuzzy set in reality.
Without any doubt the best programming language for implementing fuzzy control is Forth. It allows to define the fuzzy rules as words and thanks it's interactivity capability it's great for interactive testing
the system. My question is: Are sourcecode examples available in which Forth was used for fuzzy control?
With due respect: this seems a Forth-centric tunnel view.
In reality you need sensors, actuators and a controller eg PLC. Their toolstack
determines what you have in hand. And it is to 99.999% not in Forth.
When you're lucky you can develop and simulate using a fuzzy control toolbox. Eg.p.s. I forgot:
https://www.mathworks.com/products/fuzzy-logic.html
see page 6ff inHi,
http://www.forth.org/fd/FD-V18N6.pdf
Here is a little program that permits to create fuzzy systems.
Save this program as fuzzy.fs and include it in the file where a fuzzy system will be created.
\ Here begins the code
\ Mamdani type fuzzy system with normalized output (in [-1, 1])
vocabulary fuzzy fuzzy definitions
' is alias as
defer tnorm
defer tconorm
defer rules
: and tnorm ;
: or tconorm ;
: if 1e ;
: is f@ ;
: then tnorm ;
: )r tnorm ;
: r( ;
: rt( 0e ;
: )rt or ;
fvariable output
100 value N/2 N/2 negate value -N/2
: s_z*f 0e -N/2 N/2 do i s>f 1e-1 f* output f! rules output f@ f* f+ -1 +loop ;
: s_f 0e -N/2 N/2 do i s>f 1e-1 f* output f! rules f+ -1 +loop ;
: (fuzzy_system) s_z*f s_f f/ ;
\ Here the code finishes.
Am Mittwoch, 2. Januar 2019 12:11:10 UTC+1 schrieb minf...@arcor.de:
Am Mittwoch, 2. Januar 2019 11:52:30 UTC+1 schrieb Manuel Rodriguez:
Fuzzy control is a grammar driven control technique which allows
to realized sophisticated control systems. In the literature the standard example of a ball on a plate is often mentioned. The idea is
to define some linguistic variables for example acceleration, position, distance-to-trajectory and some rules like moveleft, moveup and stop. Then
a control program is created which is realizing the fuzzy set in reality.
Without any doubt the best programming language for implementing fuzzy control is Forth. It allows to define the fuzzy rules as words and thanks it's interactivity capability it's great for interactive testing the system. My question is: Are sourcecode examples available in which Forth was used for fuzzy control?
With due respect: this seems a Forth-centric tunnel view.
In reality you need sensors, actuators and a controller eg PLC. Their toolstack
determines what you have in hand. And it is to 99.999% not in Forth.
When you're lucky you can develop and simulate using a fuzzy control toolbox. Eg.p.s. I forgot:
https://www.mathworks.com/products/fuzzy-logic.html
see page 6ff in
http://www.forth.org/fd/FD-V18N6.pdf
timing_1000
gives about 0.9 ms
note that the fuzzy system is FS
On Monday, September 11, 2023 at 8:13:45 PM UTC+2, Marcel Hendrix wrote:Hi,
On Monday, September 11, 2023 at 6:40:41 PM UTC+2, Ahmed MELAHI wrote: [..]Sorry, I should have started by saying that this is a very interesting piece of work.
-marcel
On Monday, September 11, 2023 at 6:40:41 PM UTC+2, Ahmed MELAHI wrote: [..]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (3 / 13) |
Uptime: | 44:17:28 |
Calls: | 6,710 |
Calls today: | 3 |
Files: | 12,243 |
Messages: | 5,354,110 |