Message Boards Message Boards

0
|
1376 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Minimize on a List by Index

Posted 10 years ago

Hi everyone

I wanna to find minimize a function or a list, I wrote a sample code that shows my purpose.

In[3]:= F[1]:=1*1024 *1024;(* 1MBps *)
F[2]:=700 *1024;(* 700kBps *)
MAX:=10*1024*1024; (* 10MBps *)

In[6]:= Minimize[{F[i],
10<=F[i]<=MAX &&
1<=i<=2 },{i},Integers]
Out[6]= Minimize[{F[i],10<=F[i]<=10485760&&1<=i<=2},{i},Integers]
In[7]:= F[1]
In[8]:= 1048576
F[2]
Out[8]= 1048576
Out[9]= 716800

But as you can see Minimize solve the optimization! I'm new in Mathematica an I didn't find any solution on the internet.

I would appreciate any ideas.

POSTED BY: MH Zarei
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