1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and...

23
1 Interfaceando com Planilhas Prof. André Marcato Livro Texto : LINGO – The Modeling Language and Optimizer

Transcript of 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and...

Page 1: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

1

Interfaceando com Planilhas

Prof. André Marcato

Livro Texto: LINGO – The Modeling Language and Optimizer

Page 2: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 2

Introdução

O LINGO permite importar/exportar dados de planilhas Excel utilizando a função OLE (Object Linking and Embedding)

A transferência é realizada diretamente via memória, ou seja, não são utilizados arquivos de transferência.

@OLE pode ler os membros e atributos dos conjuntos.

As faixas são lidas sempre da esquerda para direita e de cima para baixo.

Page 3: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 3

Importando as Seções Data e Init com a Função @OLE

É a lista de objetos do modelo. Pode conter qualquer combinação

de nomes de conjuntos, atributos de

conjunto e variáveis escalares.

É o nome da planilha Excel que contém os

dados a serem importados. Se o

nome for omitido, será utilizado a planilha atualmente aberta.

É a lista de nomes de faixas (ranges) de

onde os dados serão importados.

Page 4: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 4

Importando as Seções Data e Init com a Função @OLE – Exemplos

Usar a função nomear intervalo do Excel.

Page 5: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 5

Exemplo do Problema de Transporte (1)

Page 6: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 6

Exemplo do Problema de Transporte (2)

Page 7: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 7

Exemplo do Problema de Transporte (3)

Page 8: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 8

Exportando Soluções Para Planilhas (1)

Page 9: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 9

Exportando Soluções Para Planilhas (2)

Page 10: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 10

Exportando Soluções Para Planilhas (3)

Page 11: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 11

Exemplo

Page 12: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 12

Exemplo

Page 13: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 13

Exemplo

Page 14: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 14

Incorporando o LINGO no Excel (1)

REQUIREMENTS

Page 15: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 15

Incorporando o LINGO no Excel (2)

Page 16: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 16

Incorporando o LINGO no Excel (3)

Page 17: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 17

Incorporando o LINGO no Excel (4)

Page 18: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 18

Embarcando um Modelo Lingo no Excel (1)

Page 19: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 19

Embarcando um Modelo Lingo no Excel (2)

Page 20: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 20

Embarcando um Modelo Lingo no Excel (3)

Page 21: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 21

Embarcando Planilhas Excel no LINGO (1)

Page 22: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 22

Embarcando Planilhas Excel no LINGO (2)

Page 23: 1 Interfaceando com Planilhas Prof. André Marcato Livro Texto: LINGO – The Modeling Language and Optimizer.

Aula 9 23

Embarcando Planilhas Excel no LINGO (3)