This workaround works in R2019a:
clear all
close all
clc
syms g r s K P0 P(t)
assume(g==s)
eq1 = simplify(dsolve(diff(P,t) == r*P*(1-P/K)-s*P, P(0) == P0))
eq2 = simplify(dsolve(diff(P,t) == r*P*(1-P/K)-g*P, P(0) == P0))
res = isequal(eq1,eq2)
Setting the assumption below the dsolve command will fail:
clear all
close all
clc
syms g r s K P0 P(t)
eq1 = simplify(dsolve(diff(P,t) == r*P*(1-P/K)-s*P, P(0) == P0))
eq2 = simplify(dsolve(diff(P,t) == r*P*(1-P/K)-g*P, P(0) == P0))
assume(g==s)
res = isequal(eq1,eq2)
Best Answer