Skip to content

Commit fe6451d

Browse files
committed
pump v0.2.10
1 parent 8e3a874 commit fe6451d

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
### 0.2.10 (Upcoming Release)
1+
### 0.2.11 (Upcoming Release)
2+
3+
4+
### 0.2.10
25

36
- Update docs example in travelingsalesman.
47
- Update the documentation so that the examples are runnable by copy-pasting.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "OperationsResearchModels"
22
uuid = "8042aa49-e599-49ec-a8f7-b5b80cc82a88"
3-
version = "0.2.9"
3+
version = "0.2.10"
44
authors = ["Mehmet Hakan Satman <mhsatman@gmail.com>"]
55

66
[deps]

ext/OperationsResearchModelsIpoptExt.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ Ipopt installed and properly configured in your Julia environment to use this fu
4747
4848
- `PortfolioResult`: The result of the portfolio optimization problem, containing the optimal weights, expected return, and the JuMP model used to solve the problem.
4949
50+
# Example
51+
```julia
52+
using OperationsResearchModels
53+
using Ipopt
54+
55+
problem = PortfolioProblem(rand(100, 5), 0.01)
56+
result = solve(problem)
57+
println("Optimal Weights: ", result.weights)
58+
println("Expected Return: ", result.expectedreturn)
59+
```
5060
"""
5161
function solve(p::PortfolioProblem)::PortfolioResult
5262
model = Model(Ipopt.Optimizer)

0 commit comments

Comments
 (0)