Ask Your Question
2

How to solve the issue of estimating time-varying variables using GEKKO and APOPT solver with integer=True?

asked 2021-08-24 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-18 13:00:00 +0000

ladyg gravatar image

When using GEKKO and APOPT solver with integer=True to estimate time-varying variables, the solution may be unstable and not accurate due to the integer constraint. To solve this issue, follow these steps:

  1. Change the solver to IPOPT or BPOPT. These solvers do not require integer=True and can handle time-varying variables more effectively.

  2. If you must use APOPT solver, try reducing the time horizon and/or increasing the number of time points to improve the accuracy of the solution.

  3. Use a warm start to the optimization, which means using the solution from the previous time point as the initial guess for the next time point. This approach can improve the stability and accuracy of the solution.

  4. Change the objective function to penalize large changes in the time-varying variables across time points. This approach can help to smooth out the solution and improve stability.

  5. Consider using different constraints or objectives that do not require the use of the integer=True option, such as a mixed-integer linear programming (MILP) formulation or a piecewise-continuous optimization. These approaches can be more suitable for time-varying variables.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-24 11:00:00 +0000

Seen: 10 times

Last updated: Oct 18 '21