From: Sciss <co...@sc...> - 2007-06-07 11:54:08
|
well, found the paper http://www.emn.fr/jussien/publications/jussien-WCP00.pdf and got choco working in groovy (groovy.codehaus.org): pb =3D new choco.palm.PalmProblem(); a =3D pb.makeEnumIntVar( "a", 1, 15 ); b =3D pb.makeEnumIntVar( "b", 1, 15 ); c =3D pb.makeEnumIntVar( "c", 1, 15 ); d =3D pb.makeEnumIntVar( "d", 1, 15 ); e =3D pb.makeEnumIntVar( "e", 1, 15 ); f =3D pb.makeEnumIntVar( "f", 1, 15 ); pb.post( pb.geq( d, pb.plus( a, 1 ))); pb.post( pb.geq( d, pb.plus( b, 2 ))); pb.post( pb.geq( e ,pb.plus( c, 1 ))); pb.post( pb.geq( f, pb.plus( d, 4 ))); pb.post( pb.geq( f, pb.plus( e, 3 ))); pb.propagate(); println "result f =3D " + f.getDomain(); ;-) now trying out things. ciao, -sciss- Am 06.06.2007 um 16:09 schrieb Sciss: > thank you! where can i find information / doc / tutorial about palm? > > ciao, -sciss- > > > Am 06.06.2007 um 15:51 schrieb Guillaume Richaud: > >> Hi, >> >> To answer to your first question: yes you can add constraints and >> remove them dynamically. But to be able to remove them without >> restarting you have to use Choco/Palm. >> >> Guillaume >> >> Sciss a =E9crit : >>> hi, >>> >>> i'm starting to learn about contraint programming. i want to >>> evaluate the possibilities of using choco with longterm question >>> about constraints that can change in a "realtime environment", so >>> i'm interested in the timing scheme of choco and if it's possible >>> to calculate some variables and at some later point in time >>> modify constraints (re-post them?) and re-calculate certain >>> variables. >>> >>> then i'm interested in what i guess is called soft constraints, >>> i.e. variables that are only specified in terms of a probability >>> distribution so that a solution is calculated by generating a >>> random number that satisfies that distribution. >>> >>> last, i'm interested to know if anyone is using choco in a >>> scripting environment on top of java, like groovy or jython. >>> >>> how senseful do you judge an effort to port the choco library to >>> other languages like supercollider3? >>> >>> thanks, -sciss- >>> > > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Choco-users mailing list > Cho...@li... > https://lists.sourceforge.net/lists/listinfo/choco-users |