// gp.cc //-------------------------------------------------------------------------- // This code is a component of Genetic P…
gp 源代码
类属编程(genericprogramming)generic是构成库的另一种方式,这与传统的oop是不同的。这类程序库一般由类属组件和类属算法组成,组件和算法通过迭代器组装起来,组件则对迭代器提供一定的封装。这种程序库的优点在于能够提供比传统程序库更灵活的组装方式,而不损失效率…
// gp.hpp //-------------------------------------------------------------------------- // This code is a component of Genetic …
% demonstration scripts and data for the gpml software % date: 2006-03-27. % % data_6darm.mat - MacKay's robot arm data, with…
/* ** generic header file for dsPIC33F */ #if defined(__dsPIC33FJ128GP206__) #include #elif defined(__dsPIC33FJ128GP306_…
syms s kc ti tp kp torp Gc Gp G y yy Gc=kc*(1+1/ti/s);Gp=kp*exp(-s*torp)/(1+tp*s); G=Gc*Gp/(1+Gc*Gp); y=ilaplace(G/s); yy=subs…
#include /* * Interrupt test for PIC * * Copyright (C)1997 HI-TECH Software. * Freely distributable. */ //#defin…
gp=gauspuls('cutoff',1000,0-6,[],-40) tgp=-gp:-00001:gp [gpi,gpq,gpe]=gauspuls(tgp,1000,0-6) subplot(2,2,1) plot(tgp,gpi) sub…
function glambda(p,lambda,kg) global DAE if ~p.n, return, end DAE.gp(p.bus) = DAE.gp(p.bus) - (lambda+kg*p.con(:,10)).*p.con(:,…
function gcall(p) global DAE if ~p.n, return, end DAE.gp(p.bus) = p.con(:,4) + DAE.gp(p.bus); DAE.gq(p.bus) = p.con(:,5) + DAE.…
function glambda(p,lambda) global DAE if ~p.n, return, end DAE.gp(p.bus) = lambda*p.con(:,4) + DAE.gp(p.bus); DAE.gq(p.bus) = l…