You can use R[i] * P[i]. This is still nonlinear, but the special case of quadratic expressions is supported by @constraint.
The other two constraints using < and > contradict each other and can not be satisfied simultaneously. Further, strict inequalities are not supported by solvers such as Gurobi.
using JuMP, Gurobi
m=Model(Gurobi.Optimizer)
@variables m begin
fp
fq
a
v
end
@NLconstraint(m, exp(fp) <= 40)
@NLconstraint(m, exp(1/v) <= 40)
@constraint(m,fq+a <= 40)
optimize!(m)
Can’t set optimizer_attribute or other setting to solve the problem? I saw Gurobi’s official website that it can solve NLP.
Thank you for your help.