Binary Variables Definition

Reply
Occasional Contributor
Posts: 16

Binary Variables Definition

Hello,

I have a decision variable (x) that should be outputted from an optimization problem

This variable should be outputted as binary, taking only the values of "0" OR "1"

How can I define that at SAS proc iml?

As I can't find a syntax that puts that as a condition

In addition, I tried the below equation to be added to the constraints of my optimization problem, which ends up with the same meaning, but it gave no results

x*(1-x)=0

Please help

this is very urgent and I have due date with very limited timingssssssssssss

thanks a lot

Super User
Posts: 11,343

Re: Binary Variables Definition

Since this is an IML question you will likely get a quicker answer posting there than the general discussions.

Occasional Contributor
Posts: 16

Re: Binary Variables Definition

where shall I post, I don't know?

SAS Super FREQ
Posts: 3,755

Re: Binary Variables Definition

Ask a Question
Discussion stats
  • 3 replies
  • 186 views
  • 0 likes
  • 3 in conversation