You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `cost::Matrix`: A matrix where each row represents a project and each column represents a resource. The values in the matrix represent the cost of using that resource for that project.
22
+
- `budgets::Vector`: A vector where each element represents the budget available for the corresponding resource.
23
+
- `returns::Vector`: A vector where each element represents the return of selecting the corresponding project.
24
+
"""
25
+
struct ProjectSelectionProblem
26
+
cost::Matrix
27
+
budgets::Vector
28
+
returns::Vector
29
+
end
30
+
31
+
32
+
"""
33
+
ProjectSelectionResult
34
+
35
+
# Description
36
+
37
+
A structure to hold the result of the project selection problem.
38
+
39
+
# Fields
40
+
41
+
- `selected`: A vector of booleans (0 and 1s) indicating which projects are selected.
42
+
- `objective`: The objective value of the model.
43
+
- `model`: The JuMP model used to solve the problem.
0 commit comments