Skip to main content

Objective function call to external function

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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.
  • Maliheh Aramon
    • Gurobi Staff

    Hi,

    I assume the battery degradation function is a black-box function that does not have a known analytical form. If this assumption is correct, the best you can do is to approximate it as a piecewise linear objective. Please check out the piecewise linear objective section in the documentation for more details.

    Best regards,

    Maliheh

    0
  • Gwyneth Butera
    • Gurobi Staff

    In addition, you can also refer to Is it possible to feed black-box functions to Gurobi?.

    0

Post is closed for comments.