similar to: ATSP to TSP reformulation

Displaying 20 results from an estimated 90 matches similar to: "ATSP to TSP reformulation"

2010 May 30
1
solve_TSP ignores control data, or I'm reading the help doc incorrectly.
I read the documentation below to mean that: solve_TSP( tsp_input, '2-opt', rep=99 ) will use the 2-opt method on the tsp_input variable 99 times. Catch: I get an "unused input" error. Q: Am I reading the docs (Item 1, below) correctly or is this a problem with solve_TSP ignoring its inputs (Item 2, below). Item 1: solve_TSP doc: > library(TSP) >
2012 Oct 12
7
ifelse reformulation
Hi, i'm trying to simplify some R code but i got stucked in this: test<-data.frame(cbind(id,x1,x2,x3,x4,x5,x6,x7)) test > test id x1 x2 x3 x4 x5 x6 x7 1 1 36 26 21 32 31 27 31 2 2 45 21 46 50 22 36 29 3 3 49 47 35 44 33 31 46 4 4 42 32 38 28 39 45 32 5 5 29 42 39 48 25 35 34 6 6 39 31 30 37 46 43 44 7 7 41 40 25 23 42 40 24 8 8 27 29 47 34 26 38 28 9 9 25 35 29 36
2019 Apr 18
1
Bug in the "reformulate" function in stats package
So here is it as txt file. It is funny that a R file is restricted in R-devel mailing list. Anyhow, in this case R-core have a few choices here: * ignore my solution * show that it is actually bad or worse * consider adding it Considering, that it is a minor change from previous version and doesn't bother the existing usage, I saw the necessity to submit it here. But newer solution
1998 Sep 28
1
"tsp<-"
If value is NULL I think tsp assignment should not return a class ts object. Below is a fixed version. Paul Gilbert ____ "tsp<-" <-function(x, value) {if (is.null(value)) {attr(x, "tsp") <- value if(inherits(x,"ts")) class(x) <- NULL return(x) } attr(x, "tsp") <- value class(x) <- "ts" x }
2006 Nov 23
1
dumping/loading objects with 'tsp' attribute
Dear all, I'm indirectly faced with the fact that setting the 'tsp' attribute of an object modifies its class definition: > class( structure(1:2, tsp=c(1,2,1), class=c("myts","ts")) ) [1] "ts" "myts" In general, this is of really little (ok, I admit: totally no) interest for me because 'myts' class is added just after assigning the
2005 May 15
0
list TSP-SHARE: List Message Rejected
Dear samba@lists.samba.org: Your recent message to the TSP-SHARE list has been rejected for the following reason: Only list subscribers may send messages to this list. If you need assistance, please contact the list owner at TSP-SHARE-request@ucdavis.edu The text of your message follows: ---------------------------------------------------------------------- Received: from havana.ucdavis.edu
2009 Nov 20
2
How to setup the tsp attribute of a dataset
Hello, I am wondering how I should set up the tsp attribute (available through attr(x, "tsp")) of a dataset x? Let's assume that x has 100 points, and I want to set the frequency to 4. I tried: > attr(x,"tsp")<-c(1,100,4) Error in attr(x, "tsp") <- c(1, 100, 4) : invalid time series parameters specified Is there any other way to set the frequency of
2011 Aug 19
2
Multiple Traveling Salesperson Problem
While R has library TSP to help solve traveling salesperson problems, does anyone know if it has any libraries to help solve multiple traveling salesperson problems? For instance, suppose one is planning school bus routes and one has multiple buses. Thank you for your time. -- View this message in context:
2011 Aug 18
1
convert a matrix to binaryMatrix in Recommenderlab
Does anyone have experience about how to convert a matrix to binaryMatrix using Recommenderlab package? Thanks, Jing [[alternative HTML version deleted]]
2010 Dec 20
2
package "arules" - 'transpose' of the transactions
Suppose this is my list of transactions: set.seed(200) tran=random.transactions(100,3) inspect(tran) items transactionID 1 {item80} trans1 2 {item8, item20} trans2 3 {item28} trans3 I want to get the 'transpose' of the data, i.e. transactionID items 1 {trans2} item8 2 {trans2} item20 3 {trans3} item28 4 {trans1} item80 I
2010 Nov 10
1
clustering association rules
Hello. I have a general question regarding to clustering of association rules. According to http://cran.r-project.org/web/packages/arules/vignettes/arules.pdf "4.7 Distance based clustering transactions and associations" there is possibility for creating clusters of association rules. I do not understand, how I have to interpret clusters of rules. Let us have next association rules and
2005 Mar 31
1
Surface plot for polynomial regression
Dear R-experts, my goal is to visualize the following polynomial regression as a 3D-surface: Z = b0 + b1*X + b2*Y + b3*XY + b4*X^2 + b5*Y^2 I believe that a solution to this problem may be of interest to a wider range of scientists because the problem is a derivative of a more general problem, i.e.: how to describe the relationship between one dependent variable and the DIFFERENCE between two
2019 Apr 18
3
Bug in the "reformulate" function in stats package
Hi, Sorry for writing this late, I was very busy. I started this discussion here. I wish I could write to bugs.r-project.org, but I don't have an account and I will write here instead. Meanwhile, I solved my problem with a simpler fix (please see attached file)/. / This requires that term labels are not "ticked". I think this is better, since it is easier to have column names
2003 Aug 12
1
Programme Maxstat
Sirs, I have recently been interested in your Maxstat. I have computed with my own programme the ranks (by using the Kaplan-Meier method and the log-rank test) with the formula (Observed-Expected)/(SQR Var). The results are similar but not exact to the M value obtained with the Maxstat. I would like to know whether you are using some correction or adjustment in computing the different ranks. Thank
2009 Aug 14
1
aov p values for levels of a factor.
Windows XP R2.8.1 I am running an balanced aov, in which Time has 4 levels, Group has 2 levels: fit2<-aov(Post ~ as.factor(Time) +as.factor(Group)+as.factor(Group*Time)+Error(SS), alldata) I would like to get a p value for each level of time, each level of Group and each level of Group*Time. How can I do this? I get this, which appears to be omnibus p values for the factors: Error: SS
2015 Mar 19
6
RFC: Matrix package: Matrix products (%*%, crossprod, tcrossprod) involving "nsparseMatrix" aka sparse pattern matrices
This is a Request For Comment, also BCCed to 390 package maintainers of reverse dependencies of the Matrix package. Most users and package authors working with our 'Matrix' package will be using it for numerical computations, and so will be using "dMatrix" (d : double precision) matrix objects M, and indirectly, e.g., for M >= c will also use "lMatrix" (l:
2019 Mar 29
0
Bug in the "reformulate" function in stats package
>>>>> Saren Tasciyan >>>>> on Thu, 28 Mar 2019 17:02:10 +0100 writes: > Hi, > I have found a bug in reformulate function and have a solution for it. I > was wondering, where I can submit it? > Best, > Saren Well, you could have given a small reproducible example depicting the bug, notably when posting here: Just a prose
2019 Mar 29
0
Bug in the "reformulate" function in stats package
The main thing is to post the "small reproducible example". My (rather long term experience) can be written if (exists("reproducible example") ) { DeveloperFixHappens() } else { NULL } JN On 2019-03-29 11:38 a.m., Saren Tasciyan wrote: > Well, first I can't sign in bugzilla myself, that is why I wrote here first. Also, I don't know if I have the
2019 Mar 28
2
Bug in the "reformulate" function in stats package
Hi, I have found a bug in reformulate function and have a solution for it. I was wondering, where I can submit it? Best, Saren -- Saren Tasciyan /PhD Student / Sixt Group/ Institute of Science and Technology Austria Am Campus 1 3400 Klosterneuburg, Austria
2019 Apr 04
0
Bug in the "reformulate" function in stats package
>>>>> Ben Bolker >>>>> on Fri, 29 Mar 2019 12:34:50 -0400 writes: > I suspect that the issue is addressed (obliquely) in the examples, > which shows that variables with spaces in them (or otherwise > 'non-syntactic', i.e. not satisfying the constraints of legal R symbols) > can be handled by protecting them with backticks