Skip to main content

The definition of constraint contains a goniometric function.

  • September 15, 2024
  • 3 replies
  • 34 views

Forum|alt.badge.img+2

I have been trying to construct a optimal power flow(OPF) model. I refer to the OPF model in “How-to”, and add time terms( 24-hour optimisation cycles), energy storage and renewable generation to the model. However, there is an error of “The definition of constraint contains a goniometric function, which cannot be handled by BARON” in my model. This problem did not appear in the original model even though it also has geometric functions.Does anyone know why and how to avoid such errors? Thank you very much!

3 replies

Marcel Hunting
AIMMSian
Forum|alt.badge.img+4
  • AIMMSian
  • 258 replies
  • September 16, 2024

Hi @Jingfan Liu. Which solver did you use in the original model?

It seems that one of the constraints uses a geometric function containing at least one variable. That makes the model nonlinear; either NLP or MINLP.

BARON is a global solver that can handle NLP and MINLP but it cannot handle geometric functions with variables. Octeract is another global solver for NLP and MINLP which can handle geometric functions with variables. You can also use a local nonlinear solver: IPOPT, CONOPT, Knitro or SNOPT for NLP, and Knitro or the GMP-OA module for MINLP.


Forum|alt.badge.img+2
  • Author
  • Enthusiast
  • 4 replies
  • September 16, 2024

Thank you for your answer. I built the OPF model based on a tutorial in “How-to”, and I don't get any errors when I run the tutorial's model of OPF. Is this due to a difference in our solver settings? And how to set the solver manually?


Marcel Hunting
AIMMSian
Forum|alt.badge.img+4
  • AIMMSian
  • 258 replies
  • September 16, 2024

The OPF model from the tutorial uses a geometric function containing a variable, so you must have used a different solver for that model. You can change the (default) solver in the solver configuration. You can also specify the solver in the solve-statement, e.g.,

Solve OPF where solver := 'CONOPT 4.1';



Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator