[gecode-users] maximze the profit (cost)
Christian Schulte
cschulte at kth.se
Tue Oct 1 19:55:46 CEST 2013
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-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of peter Tomson
Sent: Tuesday, October 1, 2013 07:01 PM
To: users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20131001/5b9e1c21/attachment-0001.html>
More information about the users
mailing list