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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hi,
I think you can find the answer in the documentation
Hope it helps,
CP
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?