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.
This topic has been locked.
2 replies Latest Post - 2013-01-07T02:13:11Z by SystemAdmin
Pinned topic Using Ceil in objective function via Java interface
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-07T02:13:11Z at 2013-01-07T02:13:11Z by SystemAdmin
Re: Using Ceil in objective function via Java interface2013-01-07T02: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();