Skip to content

cplex-scala-1.5.0

Compare
Choose a tag to compare
@danielgodard danielgodard released this 18 Apr 16:36
· 48 commits to master since this release
  • Update Gradle wrapper to release 5.4
  • Add API for multi-objective in MpModel: see example DietMultiObj.scala
  • Define method apply in classes NumArray, IntArray and IntExprArray for element constraint: this allows to write constructs like cost = costs(supplier) where costs is an array of integer, supplier is an integer variable and cost is an integer expression that represents the cost of the supplier. See Facility.scala for a complete example.
  • Add operator * on classes NumArray, IntArray, NumVarArray and IntExprArrayfor scalar product.
  • Refactoring:
    • Add class Modeler to build optimization model: CpModel and MpModel now inherits from Modeler
    • Move many classes such as NumExpr, IntExpr, NumVar, IntVar, Objective from package com.decisoinbrain.cplex.mp and com.decisionbrain.cplex.cp to com.decisionbrain.cplex.
    • These entities are now shared and can be used to build either a mathematical programming model or a constraint
      programming model.
  • Update file build.gradle: replace dependency with oplall.jar by dependencies with cplex.jar and
    ILOG.CP.jar instead.