That is a C++ programming error you did, googling this would have revealed that: the class is abstract, so you forgot to define one of the virtual member functions required.
Maybe you forgot the cost function itself? Christian -- Christian Schulte, www.ict.kth.se/~cschulte From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of peter Tomson Sent: Tuesday, October 1, 2013 07:01 PM To: users@gecode.org Subject: [gecode-users] maximze the profit (cost) hi all! i program a model where i have to maximize the profit ( objective function). As you know in constraint programing some times we need to maximize or minimize. i used other solvors and i find functions that do that by default for exemple the Choco solvor. When i read the MPG, i found just Support for cost-based optimization so i tryed to use it to solve my model ( of course i looked at the exemple SendMostMoney and i tryed to do the some but here : virtual Space* copy(bool share) { return new exempleMMKP(share,*this); } i have got an error : object type abstract class "exempleMMKP" unauthorized So what can i do to slve this problem thank very much PETER
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users