Hi All,
I want to transform my OPL code to Java. But I can not find the the equivalence of ceil function in java interface. I only find IloModeler.max, IloModeler.min, IloModeler.abs.
Can any one tell me, is this function support in Java interface? Otherwise I need to use some trick to transform the ceil function into constraints.
Thanks.
Topic
This topic has been locked.
2 replies
Latest Post
 20130107T02:13:11Z by SystemAdmin
ACCEPTED ANSWER
Pinned topic Using Ceil in objective function via Java interface
20130106T16:01:57Z

Answered question
This question has been answered.
Unanswered question
This question has not been answered yet.
Updated on 20130107T02:13:11Z at 20130107T02:13:11Z by SystemAdmin

ACCEPTED ANSWER
Re: Using Ceil in objective function via Java interface
20130106T17:41:15Z in response to SystemAdminI think Math.ceil() is what you are looking for.
ACCEPTED ANSWER
Re: Using Ceil in objective function via Java interface
20130107T02:13:11Z in response to SystemAdminThanks for your reply. I am not very sure whether Math.ceil is compatible with ilog variable.
I find this in ilog.cp.IloCP
ilog.cp.IloCP cp = new IloCP();
cp.ceil()
