Message Boards Message Boards

0
|
4092 Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

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

Posted 7 years ago

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
2 Replies
In[3]:= Select[v, (t2 /. #) > 0 &]

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

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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract