Open avelin0 opened 1 year ago
É o valor de Pi na math.h, para evitar problemas troquei por 3.14 no código.
Obrigado pelo aviso!
Em sáb., 12 de nov. de 2022 às 19:36, Avelin0 @.***> escreveu:
Está gerando o seguinte erro:
BRKGA_QL.cpp:664:114: error: 'M_PI' was not declared in this scope 664 | epsilon = epsilon_min + 0.5 (epsilon_max - epsilon_min) (1 + cos((((int)currentTime%Ti)/(float)(Ti))*M_PI));
adicionei um valor inteiro para M_PI (int M_PI =0) e funcionou.
Mas não sei qual o tipo o valor verdadeiro dessa constante e se ela é usada globalmente ou não.
— Reply to this email directly, view it on GitHub https://github.com/antoniochaves19/BRKGA-QL_v2.0/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3UR6YDGOAQUVQSF4K3W3LWIALYJANCNFSM6AAAAAAR6QXVWI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Prof. Dr. Antônio Augusto Chaves Univ. Fed. São Paulo - UNIFESP Institute of Science and Technology - ICT http://www.ict.unifesp.br/antoniochaves/ http://www.ict.unifesp.br/antoniochaves/
Está gerando o seguinte erro:
BRKGA_QL.cpp:664:114: error: 'M_PI' was not declared in this scope 664 | epsilon = epsilon_min + 0.5 (epsilon_max - epsilon_min) (1 + cos((((int)currentTime%Ti)/(float)(Ti))*M_PI));
adicionei um valor inteiro para M_PI (int M_PI =1) e funcionou.
Mas não sei qual o tipo o valor verdadeiro dessa constante e se ela é usada globalmente ou não.