I have the following question on how to define a set:

E^((1) ) (p_0,p_d )={k_u∈E_1 (p_0,p_d )|(p_0,p_d )∈Q^((1)) } Where Q^((1))={(p_0,p_d )∈Q:0

How to define E^((1) ) (p_0,p_d ) / Q^((1)) and E_1 (p_0,p_d )?

The following is the code: int Resources = ...; // Number of Stations to select; range Stations = 1..Resources; float charge_stations[Stations];

range Interchanges = 1..Resources; // Number of Interchanges to be covered; // Define Traffic Flow sets, distance and related binary variable tuple flow {int i; int j;} setof(flow) Flows = {<i,j> | ordered i,j in Interchanges}; float distance_flow[Flows] = ...;

tuple stations { float charge_stations; }

tuple traffic_flow { float distance_flow; } float Budget; float Safety_distance;

dvar int Build[Stations]; dvar boolean FlowsInSet1[Flows]; dvar boolean Cover[<i,j> in Flows];

Thanks a lot!

asked 28 Apr '16, 18:30

Crubal's gravatar image

accept rate: 0%

edited 29 Apr '16, 15:59

Paul%20Rubin's gravatar image

Paul Rubin ♦♦

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 28 Apr '16, 18:30

Seen: 4,905 times

Last updated: 29 Apr '16, 15:59

OR-Exchange! Your site for questions, answers, and announcements about operations research.