Message Boards Message Boards

[✓] Handle (sort) a list of solutions?

GROUPS:

Hello guys,

first, I am pretty new at Mathematica (and this Community) and have the following problem where I could not figure out how to handle it:

I want to solve a maximization problem with to variables what leads to a lot of stationary points (solutions). Is there now any way to make this list of solutions more convenient? Possible solutions have to fulfil for example two restrictions (i.e. a > b) and if I could apply that restrictions on my list a lot of possible solutions could be sorted out. Is there a way to do that? I tried to work with "Print" and "For" so far but could not make it work.

Thanks a lot in advance and best regards Jonathan

POSTED BY: Jonathan Meinhof
Answer
1 month ago

To add an example: If I have the following solution v:

v = {{t1 -> 31, t2 -> -1.8}, {t1 -> -27, t2 -> 2}, {t1 -> -27, t2-> -2.5}, {t1 -> 27, t2 -> 2}};

How can I get all results where t2 is > 0?

POSTED BY: Jonathan Meinhof
Answer
1 month ago
In[3]:= Select[v, (t2 /. #) > 0 &]

Out[3]= {{t1 -> -27, t2 -> 2}, {t1 -> 27, t2 -> 2}}
POSTED BY: Frank Kampas
Answer
1 month ago

Group Abstract Group Abstract