BookmarkSubscribeRSS Feed
5 REPLIES 5
RobPratt
SAS Super FREQ

Your Trigger constraint contains a product of decision variables and hence is nonlinear.  Also, it is redundant because the left hand side is a sum of nonnegative summands.  If you remove this constraint, the MILP solver will return an optimal solution with InspectDecision[j] = 0 for all j.

 

What logical condition on the other decision variables do you want to force InspectDecision[j] = 1?

m3lon00
Calcite | Level 5

I wanted to enfore that the trigger was 1 and multipled by the fixed cost for any of the Ts facilities that received any shipments at all. 

RobPratt
SAS Super FREQ

In other words, you want inflow[i,j] > 0 to force InspectDecision[j] = 1.  Hint: You can do that by introducing InspectDecision[j] into the xMaxP constraint while keeping that constraint linear.

 

m3lon00
Calcite | Level 5

I figured it out, thank you so much for your help

PGStats
Opal | Level 21

@m3lon00, did you purposely delete your question statement?

PG

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 2007 views
  • 0 likes
  • 3 in conversation