Displaying 20 results from an estimated 43 matches for "contrain".
Did you mean:
contain
2010 Feb 17
2
non-linear contrained optimization
All,
I have searched the previous help boards and discovered the problem
with Rdonlp2 - Specifically, its non-availability. I thought that this
was my solution, but perhaps there is a better way that you all could
help me with. I imagine that this problem is trivial to people such
as the experts on this mailing list.
I am trying to solve this problem over and over again in a simulation:
2007 Oct 07
1
activerecord problem with contrains,belongs_to and has_many keyword
Hi,
I have two models:
AdvertisementImages (table: advertisement_images)
Advertisement (table: advertisements)
The table advertisement_images has a foreign key to advertisements
called advertisement_id. Both tables has one entry where the entry in
dvertisement_images belongs to advertisement.
The model code looks lik this so far:
class AdvertisementImages < ActiveRecord::Base
file_column
2006 Jul 22
1
Why the contrain does not work for selecting a particular range of data?
Dear:
Continuing the issue of 'ifelse'! I selecting the data whose 'x2'=1 for maximizing likelihood. I used two way to do this but the results are different.
1.Way one I use the data for x2=1 and run the program. It works for me. Tthe program is described as below:
function (parameters,y1,x11)
{
p<-parameters[1]
alpha1<-parameters[2]
beta1<-parameters[3]
2004 Oct 12
2
constrained optimization using nlm/optim?
I'm looking for an example of a simple R script that impliments a
contrained nonlinear function using nlm or optim. I'm not exactly sure how
to impliment the constraints within the objective function that is passed
to nlm/optim.
obj.func <- function( p ) {
x(p) <- unconstrained obj function value
if( constraint1 > something ) {
obj.func <- x...
2006 Nov 01
2
(no subject)
Dear R users,
Please excuse my inexperience. I am trying to contrain the coefficients of
my linear regression to equal one when using the <-lm(...) command. I've
searched "help(glm)" "help(model.offset)" etc. but I am unable to figure out
where to put this constraint. Your help would be greatly apprciated.
Thanks.
[[alternative HTML v...
2006 Jul 23
1
diff, POSIXct, POSIXlt, POSIXt
...not the one expected: expressed in seconds
and not in days, and the difference between the two last dates is not 0.
Now, if one use a vector of 9 dates only (whatever the date removed),
things come well:
diff(dts[-1])
Time differences of 92, 183, 91, 92, 182, 91, 92, 182 days
Also if one contrains dts to POSIXct
dts<-c("15/4/2003","15/7/2003","15/10/2003","15/04/2004","15/07/2004","15/10/2004","15/4/2005","15/07/2005","15/10/2005","15/4/2006")
dts <- as.POSIXct(strptime(dts, "%d/%...
2006 Jul 23
1
diff, POSIXct, POSIXlt, POSIXt
...not the one expected: expressed in seconds
and not in days, and the difference between the two last dates is not 0.
Now, if one use a vector of 9 dates only (whatever the date removed),
things come well:
diff(dts[-1])
Time differences of 92, 183, 91, 92, 182, 91, 92, 182 days
Also if one contrains dts to POSIXct
dts<-c("15/4/2003","15/7/2003","15/10/2003","15/04/2004","15/07/2004","15/10/2004","15/4/2005","15/07/2005","15/10/2005","15/4/2006")
dts <- as.POSIXct(strptime(dts, "%d/%...
2018 Aug 01
4
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
...which are hard to track;
> - It is called too late (after the reclaiming has been performed).
> Drivers with large amuont of reclaimable memory is expected to be
> released them at an early age of memory pressure;
> - The notifier callback isn't aware of the oom contrains;
> Link: https://lkml.org/lkml/2018/7/12/314
>
> This patch replaces the virtio-balloon oom notifier with a shrinker
> to release balloon pages on memory pressure. Users can set the amount of
> memory pages to release each time a shrinker_scan is called via the
>...
2018 Aug 01
4
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
...which are hard to track;
> - It is called too late (after the reclaiming has been performed).
> Drivers with large amuont of reclaimable memory is expected to be
> released them at an early age of memory pressure;
> - The notifier callback isn't aware of the oom contrains;
> Link: https://lkml.org/lkml/2018/7/12/314
>
> This patch replaces the virtio-balloon oom notifier with a shrinker
> to release balloon pages on memory pressure. Users can set the amount of
> memory pages to release each time a shrinker_scan is called via the
>...
2005 Jul 04
1
eigen of a real pd symmetric matrix gives NaNs in $vector (PR#7987)
...0.5008249 0.5008249 0.4960220
[50] 0.4960220
> #print(eW$vector)
>
>
> #library(MASS)
> #n = nrow(C)
> #y = runif(n)
>
> #lm1 = lm.gls(y~1, W = C)
> #summary(lm1)
>
> eW <-eigen(C, symmetric = TRUE)
> l_eW <- eW$values
> # the thirdteens eigenvector contrains NaN
> print(eW$values)
[1] 4.5730646 4.5730646 3.3066738 3.3066738 3.3066738 3.3066738 2.3935268
[8] 2.3935268 1.9367508 1.9367508 1.9347787 1.9347787 1.4276845 1.4276845
[15] 1.4276845 1.4276845 0.9858318 0.9858318 0.9858318 0.9858318 0.9123115
[22] 0.9123115 0.7945283 0.7945283 0.7880493 0....
2018 Aug 02
1
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
...- It is called too late (after the reclaiming has been performed).
> > > Drivers with large amuont of reclaimable memory is expected to be
> > > released them at an early age of memory pressure;
> > > - The notifier callback isn't aware of the oom contrains;
> > > Link: https://lkml.org/lkml/2018/7/12/314
> > >
> > > This patch replaces the virtio-balloon oom notifier with a shrinker
> > > to release balloon pages on memory pressure. Users can set the amount of
> > > memory pages to re...
2018 Jul 30
2
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
On Fri 27-07-18 17:24:55, Wei Wang wrote:
> The OOM notifier is getting deprecated to use for the reasons mentioned
> here by Michal Hocko: https://lkml.org/lkml/2018/7/12/314
>
> This patch replaces the virtio-balloon oom notifier with a shrinker
> to release balloon pages on memory pressure.
It would be great to document the replacement. This is not a small
change...
> In
2018 Jul 30
2
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
On Fri 27-07-18 17:24:55, Wei Wang wrote:
> The OOM notifier is getting deprecated to use for the reasons mentioned
> here by Michal Hocko: https://lkml.org/lkml/2018/7/12/314
>
> This patch replaces the virtio-balloon oom notifier with a shrinker
> to release balloon pages on memory pressure.
It would be great to document the replacement. This is not a small
change...
> In
2016 Mar 23
7
/proc/meminfo
Has anyone seen this issue? We're running containers under CentOS 7.2
and some of these containers are reporting incorrect memory allocation
in /proc/meminfo. The output below comes from a system with 32G of
memory and 84GB of swap. The values reported are completely wrong.
# cat /proc/meminfo
MemTotal: 9007199254740991 kB
MemFree: 9007199224543267 kB
MemAvailable: 12985680
2018 Aug 03
1
[PATCH v3 2/2] virtio_balloon: replace oom notifier with shrinker
...bugs and corner cases which are hard to track;
> - It is called too late (after the reclaiming has been performed).
> Drivers with large amuont of reclaimable memory is expected to
> release them at an early stage of memory pressure;
> - The notifier callback isn't aware of oom contrains;
> Link: https://lkml.org/lkml/2018/7/12/314
>
> This patch replaces the virtio-balloon oom notifier with a shrinker
> to release balloon pages on memory pressure. The balloon pages are
> given back to mm adaptively by returning the number of pages that the
> reclaimer is asking...
2018 Aug 01
0
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
...and corner cases which are hard to track;
- It is called too late (after the reclaiming has been performed).
Drivers with large amuont of reclaimable memory is expected to be
released them at an early age of memory pressure;
- The notifier callback isn't aware of the oom contrains;
Link: https://lkml.org/lkml/2018/7/12/314
This patch replaces the virtio-balloon oom notifier with a shrinker
to release balloon pages on memory pressure. Users can set the
amount of
memory pages to release each time a shrinker_scan is called via the
module parameter ba...
2016 May 20
1
how view all macvlan inrterfaces from LXC on hardware node
Hi all
We run LXC contrainers in macvlan bridge mode, i.e.;
<interface type='direct'>
<mac address='02:00:00:da:e1:b9'/>
<source dev='eno1.502' mode='bridge'/>
</interface>
In process list:
5339 ? Sl 0:03 /usr/libexec/libvirt_lxc --name t2.inf...
2018 Aug 02
0
[PATCH v2 2/2] virtio_balloon: replace oom notifier with shrinker
...rack;
>> - It is called too late (after the reclaiming has been performed).
>> Drivers with large amuont of reclaimable memory is expected to be
>> released them at an early age of memory pressure;
>> - The notifier callback isn't aware of the oom contrains;
>> Link: https://lkml.org/lkml/2018/7/12/314
>>
>> This patch replaces the virtio-balloon oom notifier with a shrinker
>> to release balloon pages on memory pressure. Users can set the amount of
>> memory pages to release each time a shrinker_scan...
2006 Mar 21
1
ARM7 Speex decoder
Dear Jan
My intention is to read a piece at time of an .ogg file (stored in and external Multimedia card) decompress it and render it on and LPC2000 DAC. Because I don't have enough RAM memory to load the complete ogg file, I must read only a piece of file at certain time, then decompress and render it, and repeat the previous process until the end of the file. The problem is that I don't
2005 Jul 04
0
eigen of a real pd symmetric matrix gives NaNs in $vector (PR#7989)
...>
>>#print(eW$vector)
>>
>>
>>#library(MASS)
>>#n = nrow(C)
>>#y = runif(n)
>>
>>#lm1 = lm.gls(y~1, W = C)
>>#summary(lm1)
>>
>>eW <-eigen(C, symmetric = TRUE)
>>l_eW <- eW$values
>># the thirdteens eigenvector contrains NaN
>>print(eW$values)
>>
>>
> [1] 4.5730646 4.5730646 3.3066738 3.3066738 3.3066738 3.3066738 2.3935268
> [8] 2.3935268 1.9367508 1.9367508 1.9347787 1.9347787 1.4276845 1.4276845
>[15] 1.4276845 1.4276845 0.9858318 0.9858318 0.9858318 0.9858318 0.9123115
>[22] 0...