Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sampling algorithm
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mauro DiNuzzo  
View profile  
 More options May 23 2012, 5:54 am
Newsgroups: comp.lang.prolog
From: Mauro DiNuzzo <pico...@alice.it>
Date: Wed, 23 May 2012 02:54:04 -0700 (PDT)
Local: Wed, May 23 2012 5:54 am
Subject: Sampling algorithm
Hello, Prolog world!

By using CLP one can easily obtain the domain of the variables.

The exact solutions can be obtained by the labeling process. However,
if there is a large number of variables, this labeling process can be
very time-consuming.

I am wondering if there is some sampling algorithm (preferably in
Prolog) which could be used in conjunction with CLP to sample the
solution space, thereby obtaining a distribution of the variables.

Any help will be very appreciated.

Thank you very very much.

Mauro DiNuzzo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Burse  
View profile  
 More options May 29 2012, 4:06 am
Newsgroups: comp.lang.prolog
From: Jan Burse <janbu...@fastmail.fm>
Date: Tue, 29 May 2012 10:06:57 +0200
Local: Tues, May 29 2012 4:06 am
Subject: Re: Sampling algorithm
Mauro DiNuzzo schrieb:

> I am wondering if there is some sampling algorithm (preferably in
> Prolog) which could be used in conjunction with CLP to sample the
> solution space, thereby obtaining a distribution of the variables.

Could you be more specific about the sampling
you desire? I guess something can be done in
the labeling phase. For example if the
labeling sees at some stage only:

    x1 in D1
    ..
    xn in Dn

And no more other suspended constraints, then
this could give rise a sampling of an area
D1 x ... x Dn. So it would be eventually faster
than waiting for its labeling and sample pointwise.

Bye


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mauro DiNuzzo  
View profile  
 More options May 29 2012, 5:52 am
Newsgroups: comp.lang.prolog
From: Mauro DiNuzzo <pico...@alice.it>
Date: Tue, 29 May 2012 02:52:56 -0700 (PDT)
Local: Tues, May 29 2012 5:52 am
Subject: Re: Sampling algorithm

Assume working with CLP(R).

You have N variables (X1,...,XN).
You set some constraints on them, eventually obtaining the domains
that satisfy those constraints (D1,...,DN).

Here I would like to sample the space of solution (S1 in D1,...,SN in
DN) that satisfy the constraints. The domains themselves do not say
nothing about the exact solutions.

Since we are in CLP(R) we have no labeling predicate.
However, we can divide each domain in M discrete values and do a sort
of "generate and test". This is a brute-force sampling algorithm, that
possibly maps the solutions by spanning the domains of the variables.
But I cannot figure out the relevance of this sampling.

For example, you have to define an order of the variables (assume from
X1 to XN). You start "labeling" X1, then X2 and so on. At a certain
point, assume XK (with K<N), the other N-K variable will be eventually
set to a specific solution. These latter values likely are outside the
discrete values that you have divided their domains in.

Thus, my motivation is to ask for already existing (and tested)
sampling strategy of real variables with upper and lower bounds (i.e.
a domain). I was thinking about Monte Carlo sampling (do you know if
this has been already implemented in Prolog?).

Feel free to ask me further.

Thank you very much.
M


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »