Google Groups Home
Help | Sign in
Updating constraints in a minimizing problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Luiz Menezes  
View profile
 More options 23 Apr 2008, 17:33
From: Luiz Menezes <nopo...@gmail.com>
Date: Wed, 23 Apr 2008 09:33:40 -0700 (PDT)
Local: Wed 23 Apr 2008 17:33
Subject: Updating constraints in a minimizing problem

!!!!! CONSTRAINT !!!!!

forall(i in insI,j in insJ,l in insI,m in insJ |
exists(isgreater_aux(i,j,l,m)) and isgreater_aux(i,j,l,m)=true)
  sum(k in insK)k*x(i,j,k) >= sum(k in insK)k*x(l,m,k) +1

!!!!! after I call a cicle !!!!!

forall(i in insI) do
  forall(j in insJ) do
   forall(l in insI) do
      forall(m in insJ) do
        if(isgreater_aux(i,j,l,m)=true)
          then
          isgreater_aux(i,j,l,m):=false
          solver(y)
          fo:=integer(getobjval)
          if(fo<=24)
           then
            isgreater_aux(i,j,l,m):=true
            else
            isgreater_aux(i,j,l,m):=false
          end-if
        end-if
      end-do
    end-do
  end-do
end-do

!!!! That cicle uses this solver !!!!

procedure solver (y:array(insI,insJ)of integer)
minimize (sum(i in insI, j in insJ, k in insK | y(i, j)=k) x(i, j, k))
fo:=integer(getobjval)
end-procedure

!!!! But in the end the "isgreater_aux" doesn't come updated !!!

!!!! How do I make the "isgreater_aux" in the constraint get updated
all the time I set it TRUE or FALSE in the cicle to get used in the
solver? !!!!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google