Thanks to remind us the mathematic curses :-)

But I have some questions :

What does the '>=' constraints  represent ?

-b1 + a1 >=0
-b2 + a1 >=0
-b3 + a1 >=0
-c1 + a1 >=0
-b2 + a1 >=0

If I take -b1 + a1 >=0, I interpret it as "if I take b1, I must take
a1".  I fail to see why you are adding this contraints to your
equation?
I would have expected a system of contraints :
a1 = b1 + b2 + b3 (If I take a1, I also take one and exactly one of b1,b2,b3)
a1 = c1 + c2        (idem for c)
a1 = 1                 (it is the root.  I take it)


I'm also wondering how to interpret your optimization function.  I see
that you favor higher versions, but why not Min (4*b1+2*b2+b3 +
2*c2+c1) for example?
I fail to understand why it would be much more important to select the
latest version of b, than the latest version of c.  Is there any
reason or is my interpretation of the function incorrect ?

Did you have any link where I could find more explanation on the
rational of the equations?

Also, how do you solve the problem that different version might have
dependency different tree?  Did you build the complete "dirty tree"
(meanings that you look up for transitive dependencies of all old
versions that will probably not be selected, an then resolve big the
equations globaly), or did you proceeds somehow iteratively (resolving
some equations to know which part of the tree to "dirty tree" to
extends, update the dirty tree with dependencies of only resolved
revisions, update the equations, solve equations again, ...).



Gilles Scokart



2008/12/19 Oleg Gusakov <oleg.subscripti...@gmail.com>:
> a diagram of mercury inner workflow is here:
> http://blogs.sonatype.com/people/?p=1016
>
> fyi - I am also working on re-introducing the "old" maven-ant syntax to
> mercury-ant-tasks. Herve - as you wished!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to