[R] Solver in R

David Winsemius dwinsemius at comcast.net
Fri Sep 10 23:46:12 CEST 2010


On Sep 10, 2010, at 5:44 PM, David Winsemius wrote:

>
> On Sep 10, 2010, at 5:35 PM, Chien-Pang Chin wrote:
>
>> Hi all:
>>
>>
>>
>> I'm looking for a package that similar to solver in MS. All I need  
>> is find a
>> r to satisfy R0=sum( , where t are from 1 to n and Xt are come from
>> another formula.
>>
>> The most package I found were to max or min the obj. function. Is  
>> there any
>> package can do it?
>
> If you minimize , you should get your answer.

Ooops, sorry. Make that:

abs( R0 - sum(r * Xt ) )  # or

( R0 - sum(r * Xt ) )^2


>
> -- 
> David.
>>
>> Thanks.
>>
>>     Peter
>
>
> David Winsemius, MD
> West Hartford, CT
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list