Changeset 1236


Ignore:
Timestamp:
05/07/23 02:39:05 (20 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Location:
cpp/frams/genetics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f1/f1_conv.cpp

    r1130 r1236  
    138138                        case 0: return;
    139139                        case ',': case ')': setPartMapping(branching_part, g); return;
    140                         case 'R': k.x += 0.7853; setPartMapping(part1, g); break;
    141                         case 'r': k.x -= 0.7853;        setPartMapping(part1, g); break;
     140                        case 'R': k.x += 0.7853; setPartMapping(part1, g); break; // 45 degrees = pi/4 like in f4
     141                        case 'r': k.x -= 0.7853; setPartMapping(part1, g); break;
    142142                        case '[': //neuron
    143143                                //              setdebug(g-(char*)geny,DEBUGNEURO | !l_neu);
  • cpp/frams/genetics/f4/f4_conv.cpp

    r1231 r1236  
    55// Copyright (C) 1999,2000  Adam Rotaru-Varga (adam_rotaru@yahoo.com), GNU LGPL
    66// Copyright (C) since 2001 Maciej Komosinski
    7 // 2018, Grzegorz Latosinski, added support for new API for neuron types and their properties
     7// 2018, Grzegorz Latosinski, added development checkpoints and support for new API for neuron types
    88
    99#include "f4_conv.h"
  • cpp/frams/genetics/f4/f4_conv.h

    r779 r1236  
    55// Copyright (C) 1999,2000  Adam Rotaru-Varga (adam_rotaru@yahoo.com), GNU LGPL
    66// Copyright (C) since 2001 Maciej Komosinski
    7 // 2018, Grzegorz Latosinski, added support for new API for neuron types and their properties
     7// 2018, Grzegorz Latosinski, added support for new API for neuron types and development checkpoints
    88
    99#ifndef _F4_CONV_H_
  • cpp/frams/genetics/f4/f4_oper.cpp

    r1234 r1236  
    55// Copyright (C) 1999,2000  Adam Rotaru-Varga (adam_rotaru@yahoo.com), GNU LGPL
    66// Copyright (C) since 2001 Maciej Komosinski
    7 // 2018, Grzegorz Latosinski, added support for new API for neuron types and their properties
     7// 2018, Grzegorz Latosinski, added development checkpoints and support for new API for neuron types
    88
    99
     
    1818// TODO add support for properties of (any class of) neurons - not just sigmoid/force/intertia (':' syntax) for N
    1919// TODO add mapping genotype character ranges for neural [connections]
    20 // TODO change the default branching plane (to match f1) so they do not grow perfectly vertical (cheating vertpos) so easily? (so they require Rr or other modifiers)
     20// TODO change the default branching plane (to match f1) so they do not grow perfectly vertical (cheating vertpos) so easily? (so they require Rr or other modifiers) - verify if and how f4 is different from f1
    2121// TODO for some genotypes, #defining/undefining F4_SIMPLIFY_MODIFIERS produces significantly different phenotypes (e.g. length of some Joint changes from 1.25 to 1.499, coordinates of Parts change, friction of some part changes from 1.28 to 0.32). Comparing f4_Node trees, the simplification works as intended, there are no huge changes apart from removing contradicting modifiers like 'R' and 'r' or 'L' and 'l', and dispersing the modifiers (changed order). There is no reason for such a significant influence of this. A hypothesis is that something may be wrong with calculating the influence of individual modifiers, e.g. some strong nonlinearity is introduced where it should not be, or some compensation between modifiers that should not influence each other (like L and R), or some modifier f4_Nodes are skipped/ignored when applying? Investigate. Example genotype: /*4*/,i<qlM,C<X>N:*#1>>,r<MRF<Xcm>N:Gpart>#5#1#2MLL#1>#1>>>>#5ML#2L#1>>>Lf,r<#1>rM<CqmLlCfqiFLqXFfl><F,<<XI>iN:|[-1:4.346]><XF><<XrRQ>N:G#3>>QiXFMR>fXM#2MfcR>R#3>>X
    2222
Note: See TracChangeset for help on using the changeset viewer.