0% found this document useful (0 votes)
13 views2 pages

Ejerci Investigacion

The document describes a model for minimizing costs in a network with constraints on nodes. It defines variables for paths between nodes, a cost function, constraints for each node, and solves the model to display the minimum cost and values of the variables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Ejerci Investigacion

The document describes a model for minimizing costs in a network with constraints on nodes. It defines variables for paths between nodes, a cost function, constraints for each node, and solves the model to display the minimum cost and values of the variables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Ejerci#2

reset;

model;

var x01 binary;

var x02 binary;

var x03 binary;

var x04 binary;

var x12 binary;

var x13 binary;

var x14 binary;

var x23 binary;

var x24 binary;

var x34 binary;

#funcion objetivo:

minimize costos:

600*x01+1000*x02+2000*x03+2800*x04+500*x12

+1400*x13+2100*x14+800+x23+1600*x24+700*x34;

#resticciones:

subject to nodo0: x01 + x02 + x03 + x04 =1;

subject to nodo1: x01 - x12 - x13 - x14 =0;

subject to nodo2: x02 + x12 - x23 - x24 =0;

subject to nodo3: x03 + x13 + x23 - x34 =0;

subject to nodo4: x04 + x14 + x24 + x34 =1;

option solver cplex;

expand;

solve costos;
display costos;

display 600*x01+1000*x02+2000*x03+2800*x04+500*x12

+1400*x13+2100*x14+800+x23+1600*x24+700*x34;

display x01;

display x02;

display x03;

display x04;

display x12;

display x13;

display x14;

display x23;

display x24;

display x34;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy