Search found 4 matches
- 6 years ago
- Forum: Syntax
- Topic: Subsets consisting of odd/even elements + compressing sets
- Replies: 2
- Views: 5027
Re: Subsets consisting of odd/even elements + compressing sets
Thanks Michael! This really helped me with the task of mapping the sets to do what I needed.
- 6 years ago
- Forum: Syntax
- Topic: Subsets consisting of odd/even elements + compressing sets
- Replies: 2
- Views: 5027
Subsets consisting of odd/even elements + compressing sets
Hi all, I have a vector U(rr), where rr = /1*40/. I also have a set i(rr) = /1*20/, and would like to populate two vectors, U1(i) and U2(i), where U1(i) should contain the odd elements of U(rr) and U2(i) should contain the even elements of U(rr). So far I have attempted using dynamic sets, i.e. rrev...
- 6 years ago
- Forum: Syntax
- Topic: Using variable level in a conditional statement
- Replies: 2
- Views: 4493
Re: Using variable level in a conditional statement
Hi, to make a long story short: Having constraints that are enforced or not depending on variable values is a thick topic within optimization. It is not as straightforward as you wish, but not impossible. It usually involves reformulation of this constraints so that they are enforced or relax based...
- 6 years ago
- Forum: Syntax
- Topic: Using variable level in a conditional statement
- Replies: 2
- Views: 4493
Using variable level in a conditional statement
Hi all, many many thanks in advance for any help you can provide with the following issue: I am attempting to solve an optimization problem which includes solution of a dynamic system via collocation. My goal is to calculate the time needed for this system to transition from one state to another: th...