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

Specifying StateSelect flag for a slice of a vector

Specifying StateSelect flag for a slice of a vector

I can see that we can set the entire vector elements as preferred states from the following syntax

Code:

Real [N, 2]  Vec (each stateSelect=StateSelect.prefer)   

But let us say I only want Vec[1:N-2, 1] elements of the above vector to be set  as preferred states. How can this be accomplished??

Edited by: ravi - Jul-11-16 05:55:46
There are 0 guests and 0 other users also viewing this topic
You are here: