Replies: 8 comments 9 replies
-
It should be possible to solve this problem class with InfiniteOpt.jl. If you can provide a basic formulation to exemplify what you have in mind, I can help you determine how to code it up. |
Beta Was this translation helpful? Give feedback.
-
Hi @pulsipher ! Thanks! I am trying to figure out a simple model that is representative. The main ideia is that we must have phases. Let's suppose we have a rocket. Hence:
If we are in Phase 1, the thrust angle is computed to maximize the distance from the platform without violating some constraints. If we are in Phase 2, the thrust angle is computed to minimize other index. I know we can use |
Beta Was this translation helpful? Give feedback.
-
I think the biggest problem here is to change the phase. There is not a variable that I can use to verify in which phase we are. I need some kind of event tracking to switch between the models. |
Beta Was this translation helpful? Give feedback.
-
Hi @pulsipher ! Thanks for the answer. Looking at PSOPT, I think the correct way here is to create many constraints given the number of phases. Hence, depending on the phase, I set the constraint to 0 or to the correct value. At least, this is my understanding about how PSOPT works when dealing with multiple stages. In my particular case, the state will be changed given the simulation time (I could approximate the problem using this consideration). Hence, it is easy to track what is the current phase. |
Beta Was this translation helpful? Give feedback.
-
Hi @pulsipher ! Awesome! Thank you very much. This example will help me a lot! |
Beta Was this translation helpful? Give feedback.
-
Hi @pulsipher ! I have another question. My objective function is an integral (something like |
Beta Was this translation helpful? Give feedback.
-
Hi @pulsipher ! First of all, thank you very much for all the help. It has been very simple using InfiniteOpt.jl to solve my problem and everything seems to be working very fine! Congratulations for this amazing package. I am now facing a new challenge from what I described. In my problem, we have phases (7) as I explained. For the initial phases, where the transition happens in pre-defined time-steps, everything is working perfectly using Do you have any idea what is the best approach here? EDIT: Just to complement what I am planning as my current approach:
The problem here is to define the constraint / objective in those phases that the time is free. For example, in a specific phase, I need to find the time scale that leads to the maximum height. However, I cannot add this to the objective function because it just does not make sense in any other phase. |
Beta Was this translation helpful? Give feedback.
-
Hi @pulsipher I just want to let you know that I managed today to implement an optimizer for a very complex, 8 phase problem. InfiniteOpt was amazing and thank you very much for all the advices! The way we write the constraints and expressions in InfiniteOpt makes everything so much clean and easy to understand! The only thing I miss in Julia ecosystem compared with PSOPT or GSOPT-II is some mechanism to perform mesh refinement for me. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I am planning to use InfiniteOpt.jl to find the optimal control for a launcher including its reentry. This problem has many stages and I need to change the dynamics and the constraints at each stage. In the past, I was using PSOPT (C++). I am wondering if this kind of problem can be solved using InfiniteOpt.jl.
Beta Was this translation helpful? Give feedback.
All reactions