Skip to content

Commit

Permalink
Quartz sync: Jan 29, 2024, 4:15 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
Darakuu committed Jan 29, 2024
1 parent 76be137 commit 1f4a5d0
Show file tree
Hide file tree
Showing 16 changed files with 170 additions and 5 deletions.
Empty file removed content/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions content/Criterio del Rapporto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
5 changes: 5 additions & 0 deletions content/Dualità.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
5 changes: 5 additions & 0 deletions content/Forma Standard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
7 changes: 7 additions & 0 deletions content/Metodo dei Tagli di Gomory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
tags:
- Ottimizzazione/FirstItinere
aliases:
- Metodo dei Tagli
- Gomory
---
5 changes: 5 additions & 0 deletions content/Metodo del Simplesso.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
43 changes: 43 additions & 0 deletions content/Problemi di Ottimizzazione.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
# Classificazione

- Ottimizzazione Matematica: problemi con 1 solo decisore, 1 solo obiettivo
- Ottimizzazione Multiobiettivo: 1 solo decisore, tanti obiettivi
- Game Theory: problemi con tanti decisori, ognuno vuole max profitto
- Ottimizzazione stocastica: problemi con dati incerti

I problemi di ottimizzazione hanno una struttura comune: un obiettivo e delle restrizioni.
L'obiettivo è il criterio di scelta da seguire, le restrizioni sono i vincoli o le limitazioni delle possibili scelte.
**Ottimizzare** vuol dire la scelta migliore per soddisfare l'obiettivo, rispettando le restrizioni.

# Ottimizzazione Matematica

Un problema di ottimizzazione è del tipo

```start-multi-column
ID: ID_7b4z
Number of Columns: 3
Largest Column: standard
```

$min f(x)$
$x \in X$

--- column-end ---
oppure

--- column-end ---

$max f(x)$
$x \in X$

--- end-multi-column
con $X \subseteq \mathbb{R}^n$ regione ammissibile (insieme scelte/ dei vincoli)
$x \in X$ soluzione ammissibile
$f:X\to \mathbb{R}$ funzione obiettivo
$f(x) = f(x_{1},x_{2},\dots,x_{n})$
Ogni problema di massimo può essere scritto come problema di minimo.
12 changes: 12 additions & 0 deletions content/Programmazione Lineare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
# Classificazione dei Problemi

Problemi lineari: la funzione obiettivo e i vincoli sono funzioni lineari, cioè del tipo:

$a_{1}x_{1}+a_{2}x_{2}+\dots+a_{n}x_{n}$

Cioè vi è la totale assenza di funzioni non lineari.
5 changes: 5 additions & 0 deletions content/Regola di Bland.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags:
- Ottimizzazione
- Ottimizzazione/FirstItinere
---
10 changes: 10 additions & 0 deletions content/Tabella Primale Duale.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
tags: []
---
| Primale | Duale |
| ----------- | --------- |
| \#variabili | \#vincoli |
|bla |bla |


bla
33 changes: 33 additions & 0 deletions content/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Ottimizzazione
---
# Ottimizzazione

Appunti di Ottimizzazione A.A. 2023/2024 del corso di laurea magistrale LM-18 in Informatica UniCT, by [Darakuu](https://github.com/Darakuu). 

Non intendono e non vogliono sostituire libri, slide ufficiali e quant'altro. 

Questa pagina funge da indice.

wip


> [!def] test callouts personalizzati
> Contents

> [!application]
> Contents
$inline latex \int _{2}^\infty 5x_{2}\, dx$

$$
\begin{align}
Multiline \\
Latex \\
\begin{bmatrix}
5 & 2 & 4 & 5 & 7 \\
2 & 4 & 3 & 2 & 1
\end{bmatrix}
\end{align}
$$
6 changes: 6 additions & 0 deletions content/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import * as Plugin from "./quartz/plugins"

const config: QuartzConfig = {
configuration: {
pageTitle: "🪴 Quartz 4.0",
pageTitle: "📈 Ottimizzazione",
enableSPA: true,
enablePopovers: true,
analytics: {
provider: "plausible",
},
baseUrl: "quartz.jzhao.xyz",
baseUrl: "quartz.Darakuu.Ottimizzazione",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
Expand Down Expand Up @@ -51,9 +51,9 @@ const config: QuartzConfig = {
// if you do rely on git for dates, ensure defaultDateType is 'modified'
priority: ["frontmatter", "filesystem"],
}),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.Latex({ renderEngine: "mathjax" }),
Plugin.SyntaxHighlighting(),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: true }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(),
Expand Down
4 changes: 4 additions & 0 deletions quartz/plugins/transformers/ofm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const icons = {
bugIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="14" x="8" y="6" rx="4"></rect><path d="m19 7-3 2"></path><path d="m5 7 3 2"></path><path d="m19 19-3-2"></path><path d="m5 19 3-2"></path><path d="M20 13h-4"></path><path d="M4 13h4"></path><path d="m10 4 1 2"></path><path d="m14 4-1 2"></path></svg>`,
listIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>`,
quoteIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z"></path><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"></path></svg>`,
bookIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/></svg>`,
wrenchIcon:`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wrench"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>`,
}

const callouts = {
Expand All @@ -74,6 +76,8 @@ const callouts = {
bug: icons.bugIcon,
example: icons.listIcon,
quote: icons.quoteIcon,
def: icons.bookIcon,
application:icons.wrenchIcon,
}

const calloutMapping: Record<string, keyof typeof callouts> = {
Expand Down
12 changes: 12 additions & 0 deletions quartz/styles/callouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@
--bg: #7a43b510;
}

&[data-callout="application"] {
--color: #c1efc1;
--border: #c1efc144;
--bg: #c1efc110;
}

&[data-callout="def"] {
--color: #a01e28;
--border: #a01e2866;
--bg: #a01e2811;
}

&[data-callout="quote"] {
--color: var(--secondary);
--border: var(--lightgray);
Expand Down
15 changes: 14 additions & 1 deletion quartz/styles/custom.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
@use "./base.scss";

// put your custom CSS here!
.callout[data-callout="application"] {
--callout-color: 193, 239, 193;
--callout-icon: lucide-wrench;
}

.callout[data-callout="definition"] {
--callout-color: 160, 30, 40;
--callout-icon: lucide-book;
}

.callout[data-callout="def"] {
--callout-color: 160, 30, 40;
--callout-icon: lucide-book;
}

0 comments on commit 1f4a5d0

Please sign in to comment.