Displaying 20 results from an estimated 5000 matches similar to: "scheduling - algorithm solution or iterate?"
2010 Jun 18
1
Using R to solve search problems
Hi All,
I am new to R and want to use R to solve search problems (like Traveling
salesman problem, finding nearest neighbor, hill climbing). Is this possible
in R?
To start with I want as follows.
Find five float numbers whose sum is is equal to their product which should
be 8000.
x + y + z + p + r = 8000
x * y * z * p * r = 8000
Regards,
Ambikesh Jayal.
School of IS, Computing & Maths,
2007 Mar 31
1
Setting a call to be recorded before Xfer?
I need to allow the company operator to decide whether to record a call.
(Car dealership that needs to coach salespeople). They don't want to record
every sales call, just for the purposes of coaching certain employees on an
ad hoc basis.
The situation is:
a. Call comes in on PSTN PRI
b. Call is routed to operator in dialplan
c. Operator ascertains that its a sales call for a salesman in
2006 Jul 23
0
Howto "scope" based on long chains of relationships
What is the best way to make use of the new "scoping" operators and
otherwise search the database using deep relationship chains
Take for example that I want to query what items all customers have ever
bought from one salesman
salesman has-many customers
customers have-many orders
orders have many items
Now I want to write an application which is for the use of only one
salesman
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:
2008 Mar 17
0
arules - getting transaction data in
Hi All
Hoping someone can help me with the "transactions" object. I am struggling
to get my data in. I know the answer is in the help somewhere I'm sure, I
just cannot find it. Essentially, I have data in this format (though I can
change it if it particularly unsuitable)
Transaction_id, store , salesman, date_time , items
1 , waterfront, john ,
2008 Aug 22
0
testing for differences in sums - how to?
If I want to test for a salesman effect on average sale, I model it as "Sale ~
Salesman". But what if I want to test for a salesman effect on total sales?
How do I model that?
Given a significant salesman effect, how do I follow up with the equivalent of
Tukey's HSD to determine who the (indistinguishly) top salesmen are?
If I add another factor, say "region" to the
2013 Oct 23
2
Multivariate time series in R 3 vs R 2
Hello!
Recently I got report that my package mar1s doesn't pass checks any more on
R 3.0.2. I started to investigate and found the following difference in
multivariate time series handling in R 3.0.2 compared to R 2 (I've checked
on 2.14.0).
Suppose I wish to calculate seasonal component for time series. In case of
multivariate time series, I wish to process each column independently.
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)
>
2008 Oct 15
0
Iterative estimation of linear regression model
Dear all
I am intrested in making iterative estimation (thro' loop statements) of, say, linear regression model. For this purpose, I have written the following programme and that I have made use of a sample data (viz., exp.txt):
?
Programme:
?
# Linear regression modelling with sample data (try5.txt)
# Repeated estimation through loop statement
1997 Aug 25
0
R-alpha: ts problems
This message is in MIME format
--_=XFMail.1.1.p0.Linux:970825095458:252=_
Content-Type: text/plain; charset=us-ascii
Here is a patch which fixes some problems with time series functions.
Some examples of what goes wrong...
> x <- ts(rnorm(100),start=1,deltat=2)
> start(x)
Error in ts[1] : object is not subsettable
> end(x)
Error in ts[2] : object is not subsettable
> y <-
2011 Nov 02
1
kernapply.ts
I have a suggestion for kernapply for ts objects. When we choose the
option circular=F, the returned series don't have the correct dates. The
removed dates are all at the beginning instead of half at the beginning
and half at the end. It is particularly useful when we need to smooth
the series (or remove a trend using a filter) before estimating a model
(like in macroeconomics) or simply
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
}
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
3
ATSP to TSP reformulation
Greetings,
I am having trouble getting the function reformulate_ATSP_as_TSP to work for
me. I have provided a simple example of some of the code I've been using.
In particular, I'm not sure why I'm getting the error
"Error in dimnames(tsp) <- list(lab, lab) :
length of 'dimnames' [1] not equal to array extent"
since I created the object ATSP with a valid
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
2018 May 15
0
Forecasting tutorial "Basic Forecasting"
Instead of
Tsp = c(2016, 2018, 12)
try
Tsp = c(2016, 2018.25, 12)
Hence, you can specify the object as
structure(c(5973156.76, 5159011.2, 6695766.64, 6365359, 6495218.53,
7226302.39, 6835272.7, 7383501.57, 6962748.19, 7623278.72, 7274994.33,
7919421.8, 7360740.81, 7436693.35, 8545765.55, 7337269.76, 8180585.44,
8376635.05, 7758261.24, 10374641.22, 8000314.11, 9114958.9, 9805149.15,
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
2012 Jun 07
1
Relative frequencies in table
Hi,
I'm trying to create a stacked bar plot with the satisfaction scores from a
customer satisfaction survey. I have results for three stores over several
weeks and want to create a weekly graph with a stacked bar for each store.
I can flatten the dataframe into a table with absolute frequencies, but I
can't find how to get relative frequencies. My dataset looks similar to the
example
2014 Apr 19
1
lag() not returning a time series object
Dear all,
Before I file this as a bug, I wanted to check if I didn't miss something.
The help page of lag() says that the function returns a time series object.
It actually does return something that looks like a ts object (the
attribute tsp is set). But when using a vector, the class "ts" is not added
to the result:
> avec <- 1:10
> lag(avec)
[1] 1 2 3 4 5 6 7 8
2013 Oct 01
0
Disponibilidad de material de la reunión del 26-Sep-2013 "Grupo de Usuarios de R de Madrid"...
Hola,
Ya tenéis disponible el material que se presentó en la última reunión del
"Grupo de Usuarios de R de Madrid".
-
- Carlos Ortega <http://www.qualityexcellence.es/> / Francisco Mauro:
"'Unos cuantos modelos dinámicos y caóticos (con shiny)''". Se expondrán
varios sistemas dinámicos y muy conocidos en la literatura utilizando la