Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
eesys-public
BIA-Resources
Commits
ec7857b8
Commit
ec7857b8
authored
Jan 28, 2021
by
Weigert, Andreas
Browse files
changed title
parent
2bf6a24d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Tutorial_Scripts/Optimization_DecisionSupport/BIA_T12_Optimization_exercise.Rmd
deleted
100644 → 0
View file @
2bf6a24d
---
title: 'Tutorial 14: Optimization'
output: html_notebook
editor_options:
chunk_output_type: inline
---
This file is part of the lecture Business Intelligence & Analytics (EESYS-BIA-M), Information Systems and Energy Efficient Systems, University of Bamberg.
```{r}
library(lpSolve)
library(ggplot2)
```
```{r lpSolve default example}
#
# Set up problem: maximize
# x1 + 9 x2 + x3 subject to
# x1 + 2 x2 + 3 x3 <= 9
# 3 x1 + 2 x2 + 2 x3 <= 15
#
objective.in <- c(1, 9, 1)
const.mat <- matrix(c(1, 2, 3, 3, 2, 2), nrow=2, byrow=TRUE)
f.dir <- c("<=", "<=")
const.rhs <- c(9, 15)
direction <- "max"
lp(direction, objective.in, const.mat, f.dir, const.rhs)
lp(direction, objective.in, const.mat, f.dir, const.rhs)$solution
```
Tutorial_Scripts/Optimization_DecisionSupport/BIA_T1
2
_Optimization.Rmd
→
Tutorial_Scripts/Optimization_DecisionSupport/BIA_T1
3
_Optimization.Rmd
View file @
ec7857b8
---
---
title: 'Tutorial 1
4
: Optimization'
title: 'Tutorial 1
3
: Optimization'
output: html_notebook
output: html_notebook
editor_options:
editor_options:
chunk_output_type: inline
chunk_output_type: inline
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment