Menu

minimize

hercule
2012-12-17
2013-04-06
  • hercule

    hercule - 2012-12-17

    Hi,
    I am new at constraint programming, i use choco to solve my problem, i already defined my variables and constraints, using solver.solve() my program can return possible solutions.

    Now i would like to use minimize() but i don't see how to do that.
    as variables i have two table of n IntegerVariable and i want to minimize a cost  "a" calculated in my programme

    can you help me?
    thanks

     
  • Charles Prud'homme

    Hi,

    I think you can find the answer in the documentation

    Hope it helps,

    CP

     
  • hercule

    hercule - 2012-12-18

    thanks for your response

    i have read the documentation, there is not many examples to more understand the minimize
    the problem is how to create a function to minimize
    in my program i dont want to minimize a choco variable (IntegerVariable) but a function of features and their weight
    is that possible in choco?

     

Log in to post a comment.