Linear Programming: Maximize (LINEAR_PRO)
|
A Python function for linear programming. |
- syse.linear_pro(costs, budget)
A Python function for linear programming. (Placeholder for a better function)
- Parameters:
costs – A list of costs associated with a project.
budget – The total budget allocated to the project.
- Returns:
A list of the maximum values that can be allocated to each cost while staying within the budget.
- Return type:
float
Caution
This function seeks to maximize the values.
Examples:
Maximize the budget given the costs:
costs = [1000, 2000, 3000] budget = 5000 solution = syse.linear_pro(costs, budget) print(solution) Output= [1000.0, 2000.0, 1000.0]