# minimum optimal values for variables while objective is maximized

 0 Hello, My solver gives the variables to be optimized the minimum values to reach the objective while my objective function is a maximum (briefly the problem checks for each vehicles the location containing the maximum acquaintances and chose it then compares the chosen location with the real one in the database, where the strength of the social tie varies with time t. the variables controlling this variation are the ones to be optimised ) the relation variable r is calculated as followed where fr,fa,co are the ones to be optimized. friends,family and coworker are read in and the are values in [0,1] r(v,e,t)=sum [u|v<>u ,fr(t)*friends(v,u) + fa(t)*family(v,u) + co(t)*coworker(v,u))] ;  i am using the following set of constrains to manage the maximum where m is the maximum and z3 is a binary where r in[0,100]: m(v,t) <= r(v,e,t)+100*(1-z3(v,e,t)) m(v,t) >= r(v,e,t) sum(e ,z3(v,e,t))>=1  i am using the following constrains to manage if(r=m)c1=1 else c1 =0, where z1,z2 are binaries r in[0,100] and m is the maximum. m(v,t)-r(v,e,t)<=-0.0001*z1(v,e,t)+100*z2(v,e,t) m(v,t)-r(v,e,t)>=0.0001*z2(v,e,t) c1(v,e,t)+z1(v,e,t)+z2(v,e,t)=1  to manage that if(m=0)c2=0 (with this i mean if r = m c should be 1 however if m =r=0, c should be zero) m(v,t)<=100*c2(v,e,t) 0.0001*c2(v,e,t)<=m(v,t)  to manage the conjunction of c1 and c 2 c(v,e,t)<=c1(v,e,t) c(v,e,t)<=c2(v,e,t) c(v,e,t)>=c2(v,e,t)+c1(v,e,t)-1  to manage that i have only one chosen location c per vehicle v i added (knowing that more than one r(v,e,t)can have a value equals to the maximum, removing this constraint did not improve anything): sum( e , c(v,e,t) ) <=1  my objective function is to maximize the following (the chosen edges e matching the ones in the database): sum[(v,e,t) | e=Destination(v,t),c(v,e,t)]  the variable to optimize are in the calculation of r(v,e,t)values. many thanks asked 01 Aug '16, 08:48 nardinebasta 6●1●3 accept rate: 0% I cannot find a question in your exposition. (01 Aug '16, 15:39) Paul Rubin ♦♦ my question is how to possibly force the optimizer to maximize the values given to the variables to be optimized rather then the minimum values. thank you (01 Aug '16, 16:03) nardinebasta
Be the first one to answer this question!
 toggle preview community wiki

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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

Tags: