Gurobi Matlab (Warning: Solver not applicable (gurobi does not support signomial constraints)
AnsweredI am currently facing the problem of gurobi does not support signomial constraints.
These are the line of codes that cause this issue.
const=[const, interp1(FC.PowerData, FC.hcData, FC.P, 'milp')<=FC.hc <= (1200/sum(FC.Pflag.*repmat(scenario.duration,nFc,1)))];
I got the code to work before adding "FC.Pflag.*" into the constraint, and the FC.Pflag is declared as 22x1 binvar as a design variable.
I read that this can be modeled to solve this issue but I do not know how to do so.
Would appreciate the help and assistance for this! Thank you in advance!
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
I am using Matlab for this! Hoping to seek an answer for this!
0 -
Gurobi does not support trigonometric functions directly. You can use Gurobi's piecewise-linear approximation feature to approximate \(\sin\) and \(\cos\) functions. You can use this feature via the genconcos and genconsin fields in the Gurobi MATLAB model argument.
0
Post is closed for comments.
Comments
3 comments