Documentation of 'Catalano.Math.Optimization.MixedIntegerLinearProgramming' Java class
MixedIntegerLinearProgramming
Catalano.Math.Optimization

Class MixedIntegerLinearProgramming



  • public class MixedIntegerLinearProgramming
    extends java.lang.Object
    Mixed Integer Linear Programming. Branch and Bound method.
    • Constructor Detail

      • MixedIntegerLinearProgramming

        public MixedIntegerLinearProgramming(MixedIntegerLinearProgramming.Objective objective)
        Initialize a new instance of the MixedIntegerLinearProgramming class.
        Parameters:
        objective - Objective.
      • MixedIntegerLinearProgramming

        public MixedIntegerLinearProgramming(MixedIntegerLinearProgramming.Objective objective,
                                             double tol)
        Initialize a new instance of the MixedIntegerLinearProgramming class.
        Parameters:
        objective - Objective.
        tol - Tolerance for round the integer.
    • Method Detail

      • setType

        public void setType(int[] type)
        Set type. 1 means integer, 0 means double.
        Parameters:
        type - Type.
      • getCoefficients

        public double[] getCoefficients()
        Get the coefficients.
        Returns:
        Coefficients.
      • getSolution

        public double getSolution()
        Get the solution.
        Returns:
        Solution.
      • Solve

        public int Solve(double[] function,
                         java.util.List<Constraint> constraint)
        Solve the problem.
        Parameters:
        function - Function.
        constraint - List of constraints.
        Returns:
        Status of the MILP.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.