Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Set free stoptime and final constraint for optimization

Set free stoptime and final constraint for optimization

Hi
I'm working with OMNotebook for optimization with IPOPT.
The problem is how to set free final/stoptime and also final constraint?
The way that described in Akesson (optimica extension) paper doesn't  work! I mean set free attribute true for finaltime and make a constraint box in optimization class and defining final constraint.
however, In another case I set the stoptime fixed and equal to one, and add an input variable to the problem which comes in differential equations and play the rule of free time, but it doesn't work too. and about final constraint, I can only use "IsFinalConstraint" annotation not in constraint box.
Please give me a solution for setting finaltime as a parameter and free (not fixed before running optimize command) and add final constraint to the optimization problem.
Thanks,
The related part in Akesson paper and my OMNotebook file are attached.
Forum.onb
My OpenModelica version:
OpenModelica v1.14.1 (64-bit)
Connected to OpenModelica v1.14.1 (64-bit)

Edited by: Mortezanik - Jun-14-20 20:08:04
Attachments:
There are 0 guests and 0 other users also viewing this topic
You are here: