GithubHelp home page GithubHelp logo

Comments (1)

clangsmith avatar clangsmith commented on August 21, 2024

Since I didn't see any steps to reproduce in this ticket, I tried to confirm with the following code and it worked great (the log lines appeared in the Output window as the program was running):

proc optmodel;
  number n init 60;
  set ISET = 1..n;
  number pi = constant('PI');
  var rho{i in ISET} <= 1 >= 0                      /* polar radius */
      init 4*i*(n + 1 - i)/(n+1)**2;
  var theta{i in ISET} >= 0 /* polar angle */
      init pi*i/n;
  con diam{i in ISET, j in i+1 .. n}:
      rho[i]**2 + rho[j]**2 - 2*rho[i]*rho[j]*cos(theta[j] - theta[i])
      <= 1; 
  con increasing{i in 2..n}: theta[i] >= theta[i-1];
  con fix_theta: theta[n] = pi;
  con fix_rho: rho[n] = 0;
  maximize area = 0.5*sum{i in 2..n} rho[i]*rho[i-1]*
      sin(theta[i]-theta[i-1]);
  solve with nlp/tech=as logfreq=10;
  %put &_oroptmodel_;
quit;

from vscode-sas-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.