Dear Johan,
I need your more help.
I tried the method in your reply, but it didn't work. I will describe my question in detail.
There is a fractional polynomial optimization question to solve
min p(x) / q(x)
s.t. x \in K,
in which, basic semi-algebra set K = [h(x) == 0, g(x) >= 0], h(x), g(x), p(x) and q(x) are polynomial.
Now, I transform above question to this by the method in this book[1, p150]:
min p(x)
s.t. x \in K,
\int_K q(x)d\mu == 1.(moment constraint)
but I don't know how to add the moment constraint \int_K q(x)d\mu == 1 to function solvemoment or other function in YALMIP.
[1] Jean Bernard Lasserre: An Introduction to Polynomial and Semi-Algebraic Optimization.
https://doi.org/10.1017/CBO9781107447226
Thanks again,
Venkye