public class ComplexExample extends Object
Constructor and Description |
---|
ComplexExample() |
Modifier and Type | Method and Description |
---|---|
IMIP |
buildMIP(double[] factories,
double[] customers,
double[][] costs,
double[][] fixedCosts,
double[] extraCosts,
boolean transportUnitsAreFractional) |
IMIP |
getMIP() |
static void |
main(String[] args) |
IMIPResult |
solve(SolverClient client) |
static IMIPResult |
test(SolverClient client) |
public IMIP getMIP()
public IMIP buildMIP(double[] factories, double[] customers, double[][] costs, double[][] fixedCosts, double[] extraCosts, boolean transportUnitsAreFractional)
factories
- Array containing each factory's availabilitycustomers
- Array containing each customer's demandcosts
- 2D-Array containing costs for the transportation from factory i to customer jfixedCosts
- 2D-Array containing the fixed costs if at least one unit is shipped from factory i to customer jextraCosts
- Array containing each factories's cost per customer they serve beyond the firsttransportUnitsAreFractional:
- Flag whether to accept fractional units to be transportedpublic IMIPResult solve(SolverClient client)
public static void main(String[] args)
public static IMIPResult test(SolverClient client)
Copyright © 2017. All rights reserved.