Presentation is loading. Please wait.

Presentation is loading. Please wait.

DEVELOPING LANGUAGES IN GENETICA A general and effective approach to domain-specific problem-solving is to use a high-level language specialized on the.

Similar presentations


Presentation on theme: "DEVELOPING LANGUAGES IN GENETICA A general and effective approach to domain-specific problem-solving is to use a high-level language specialized on the."— Presentation transcript:

1 DEVELOPING LANGUAGES IN GENETICA A general and effective approach to domain-specific problem-solving is to use a high-level language specialized on the problem’s domain. High-level formal languages can be expressed in lower-level ones if the latter languages satisfy a minimum of expressive capabilities. For instance, any computer language can be expressed in the computer’s machine language. GENETICA, supports development of high-level formal languages. The benefit is that GENETICA’s evolutionary computational system becomes available in the latter languages. Genetic Programming (GP) versions of high-level languages become possible if programs in these languages are treated as evolving data structures in GENETICA.

2 P L can be modified or even developed during the execution of P G, since it is treated as a data structure in P G. Specifically, L formulas referenced but not defined in P L can be constructed at run-time, while L formulas defined but not referenced in P L can be referenced by L formulas emerging at run-time. Data processing in P G, resulting in the development of P L, would be controlled by GENETICA’s computational system. This makes possible GP methods, where domain-specific knowledge can be encoded in incomplete L programs which can be fully developed by evolution. Depending on the degree of completeness of the L program, L could range from a GENETICA-like language, where the code is fixed whereas data evolve, to a GP language where both the entire code and the data evolve. … where the output of the latter execution is included in the output of the former one. … having input values both an arbitrary L program, labelled as P L, and the input values for P L. Terms GENETICAL Atomic Terms FormulasAtomic Formulas High Order FormulasConnectives PGPG ( P L, x 1, … x n ) P L ( x 1, … x n ) ( … y 1, … y k, … ) ( y 1, … y k ) Let L be a language which is to be developed in GENETICA. L terms can be constructed as—potentially composite—GENETICA terms. Atomic L formulas can be constructed as—potentially non atomic—GENETICA formulas. L connectives can be constructed as non atomic high-order GENETICA formulas having as input the L formulas connected by the L connective. L itself can be realized as a GENETICA program, labeled as P G, … Then a P G execution can be interpreted as a P L execution, …

3 - General knowledge representation - Knowledge encapsulation - Context sensitive behavior - Interactions - Selfassembly G-CAD The architectural design language G-CAD, which stands for GENETICA-CAD, is a case study of a computer language developed in GENETICA. G-CAD is a GENETICA-like language where the code is fixed while data structures evolve. G-CAD has the following features: G-CAD inherits from GENETICA the potential of general knowledge representation which combines predicate logic and high-order logic. A G-CAD specific feature is knowledge encapsulation in design objects. This feature, as well as the following ones, is not inherited from GENETICA. Design objects are enabled with context sensitive behavior … … based on object-to-object interactions. Context sensitive behavior triggers selfassembly procedures: design objects adapt to each other, composing higher level objects.

4 G-CAD atomic formulas allow both construction and instancing of assemblies of rectangles, where each assembly represents the plan of an architectural object. Each rectangle within an assembly is assigned a list of spatial attributes. Dimensions of a rectangle are either fixed or subjected to specific geometrical constraints. Here we can see assemblies that represent openings. Each assembly is assigned graphic attributes that support the architectural representation. Different overlapping conditions, either required or prohibited, can be specified for dark and light rectangles.

5 These assemblies represent furniture: a bed, two types of sitting group and a wardrobe. Dark rectangles represent the physical region occupied by an object while light rectangles represent the functional region (i.e. a region that should be free so that the physical object can be used). Distinction between physical and functional regions has been used before in a PROLOG design method named CADRAM (Constantin Kyriazopoulos: diploma thesis). In the G-CAD application, a physical region is not allowed to overlap either a functional region, another physical region or the region of an "opening".

6 These assemblies represent bathroom fittings. Physical and functional regions are defined as before.

7 This assembly, which represents the floorplan of a small hotel apartment, consists of three rectangles, respectively assigned the attributes "Room", "WC" and "Corridor".

8 A stairwell assembly. All rectangles should be included in a region having no other spatial attributes, while the light rectangle should be adjacent to a region having the property "Corridor".

9 ELEMENTARY OBJECTS APARTMENT ARCHITECTURAL SOLUTION The problem formulation includes both the definition of elementary objects of a solution, i.e. openings, furniture and bathroom fittings …... and specifications for a higher- level object, as the apartment. These specifications include references to elementary objects. A design problem can be formulated as a composite G-CAD formula that includes specifications for a complex object described in terms of simpler objects. Anything not determined by specifications is by definition allowed to evolve. A solution, i.e. a complex object satisfying the specifications, can be created by GENETICA's computational system. The solution, having the form of a G-CAD composite term, can be converted to an architectural drawing through a CAD interface. Conversion is based on both the graphic attributes of primitive objects and specifications for different types of walls which should be drawn at the boundaries between regions specified by attributes.

10 Here we can see an evolved apartment having openings, furniture and bathroom fittings. The G ‑ CAD statement, which represents here a confirmation problem, requires positioning of an entrance-door and a balcony-door in the main room, as well as positioning of a door and a window in the WC. Also requires positioning of two beds, one sitting group (no matter of what type) and a wardrobe in the main room, and positioning of bathroom fittings in the WC. Each object is subjected to different positioning, orientation and potentially dimensioning specifications.

11 Here are some more solutions evolved according to the same G-CAD formula.

12

13 ELEMENTARY OBJECTS APARTMENTHOTEL ARCHITECTURAL SOLUTION Now, consider a G-CAD formula that includes specifications for a small hotel having several apartments. This formula includes references to lower-level objects (apartments)... … where each lower-level object includes its own references. This is a self-replication procedure, which makes possible a developmental growth of the solution.

14 The "Hotel" formula describes an eight-apartment hotel, while includes rules of composition of apartment assemblies (schematically presented here), as well as a stairway assembly. Additional confirmation goals occur as the "Hotel" formula allows only corridor-to-corridor overlapping within a "Hotel" object. An optimization goal, also included in the "Hotel" formula, concerns the minimization of the hotel area. Now we are going to see “Hotel” solutions produced during successive phases of the evolution.

15 Continued in Section_6.PPS


Download ppt "DEVELOPING LANGUAGES IN GENETICA A general and effective approach to domain-specific problem-solving is to use a high-level language specialized on the."

Similar presentations


Ads by Google