Buckets:
| { | |
| "parametrized_description": "Maximize the sum of ProfitPerDollarCondos multiplied by the investment in condos and ProfitPerDollarDetachedHouses multiplied by the investment in detached houses. The total investment must not exceed TotalBudget. The investment in condos must be at least MinimumPercentageCondos of the total investment. The investment in detached houses must be at least MinimumInvestmentDetachedHouses. All investment amounts must be non-negative.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "TotalBudget": { | |
| "description": "Total budget available for investment", | |
| "shape": [] | |
| }, | |
| "ProfitPerDollarCondos": { | |
| "description": "Profit per dollar invested in condos", | |
| "shape": [] | |
| }, | |
| "ProfitPerDollarDetachedHouses": { | |
| "description": "Profit per dollar invested in detached houses", | |
| "shape": [] | |
| }, | |
| "MinimumPercentageCondos": { | |
| "description": "Minimum percentage of total investment that must be in condos", | |
| "shape": [] | |
| }, | |
| "MinimumInvestmentDetachedHouses": { | |
| "description": "Minimum investment required in detached houses", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "InvestmentCondos": { | |
| "description": "The amount invested in condos", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "InvestmentDetachedHouses": { | |
| "description": "The amount invested in detached houses", | |
| "type": "continuous", | |
| "shape": [] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total investment must not exceed TotalBudget.", | |
| "formulation": "InvestmentCondos + InvestmentDetachedHouses \\leq TotalBudget", | |
| "code": { | |
| "gurobipy": "model.addConstr(InvestmentCondos + InvestmentDetachedHouses <= TotalBudget)" | |
| } | |
| }, | |
| { | |
| "description": "The investment in condos must be at least MinimumPercentageCondos of the total investment.", | |
| "formulation": "InvestmentCondos \\geq MinimumPercentageCondos \\left( InvestmentCondos + InvestmentDetachedHouses \\right)", | |
| "code": { | |
| "gurobipy": "model.addConstr(InvestmentCondos >= MinimumPercentageCondos * (InvestmentCondos + InvestmentDetachedHouses))" | |
| } | |
| }, | |
| { | |
| "description": "The investment in detached houses must be at least MinimumInvestmentDetachedHouses.", | |
| "formulation": "InvestmentDetachedHouses \\geq MinimumInvestmentDetachedHouses", | |
| "code": { | |
| "gurobipy": "model.addConstr(InvestmentDetachedHouses >= MinimumInvestmentDetachedHouses)" | |
| } | |
| }, | |
| { | |
| "description": "All investment amounts must be non-negative.", | |
| "formulation": "InvestmentCondos \\geq 0 \\n InvestmentDetachedHouses \\geq 0", | |
| "code": { | |
| "gurobipy": "model.addConstr(InvestmentCondos >= 0)\nmodel.addConstr(InvestmentDetachedHouses >= 0)" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Maximize the sum of ProfitPerDollarCondos multiplied by the investment in condos and ProfitPerDollarDetachedHouses multiplied by the investment in detached houses.", | |
| "formulation": "Max \\ ProfitPerDollarCondos \\times InvestmentCondos + ProfitPerDollarDetachedHouses \\times InvestmentDetachedHouses", | |
| "code": { | |
| "gurobipy": "model.setObjective(ProfitPerDollarCondos * InvestmentCondos + ProfitPerDollarDetachedHouses * InvestmentDetachedHouses, GRB.MAXIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 3.72 kB
- Xet hash:
- 295fae7a92175ff697900a880f84a3c31a36ebec130da22785f4cf3c5d3d0f3b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.