GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • YALMIP
  • Download
  • Tutorials
  • Examples
  • Inside
  • Commands
  • Solvers
  • Index
  • FAQ
  • References
  • Forum
  • Search
  • sdpvar
  • optimize

This view

  • Original page
  • New address

GeezerVison is showing yalmip.github.io — binvar

binvar is used to define decision variables constrained to be binary (0 or 1).

Syntax

x = binvar(n)
x = binvar(n,m,)
x = binvar(n,m,'type'
x = binvar(n,m,'type','field')
binvar x

Examples

A scalar binary variable is defined with

P = binvar(1)

A related alternative command is binary.

For more examples, see sdpvar.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.